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:
parent
00b178e43f
commit
219f8e6299
@ -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%;
|
||||
|
@ -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')}
|
||||
|
Loading…
Reference in New Issue
Block a user