1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

minor fixes per snaps pr comments (#13721)

This commit is contained in:
Hassan Malik 2022-02-23 15:16:41 -05:00 committed by GitHub
parent 00b178e43f
commit 219f8e6299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View File

@ -6,8 +6,6 @@
}
&__subheader {
@include H4;
padding: 16px 4px;
border-bottom: 1px solid var(--alto);
margin-right: 24px;
@ -51,12 +49,18 @@
}
&__toggle-container {
margin-left: auto;
@media screen and (max-width: $break-small) {
padding-left: 0;
display: inline-block;
}
}
&__toggle-button {
margin-right: -12px;
}
&__content-container {
@media screen and (max-width: $break-small) {
width: 100%;

View File

@ -86,15 +86,12 @@ function ViewSnap() {
url={authorshipPillUrl}
/>
</Box>
<Box
paddingLeft={4}
className="snap-settings-card__toggle-container view-snap__toggle-container"
>
<Box paddingLeft={4} className="view-snap__toggle-container">
<Tooltip interactive position="bottom" html={t('snapsToggle')}>
<ToggleButton
value={snap.enabled}
onToggle={onToggle}
className="snap-settings-card__toggle-container__toggle-button"
className="view-snap__toggle-button"
/>
</Tooltip>
</Box>
@ -155,8 +152,8 @@ function ViewSnap() {
css={{
maxWidth: '175px',
}}
onClick={async () => {
await dispatch(removeSnap(snap));
onClick={() => {
dispatch(removeSnap(snap));
}}
>
{t('removeSnap')}