minor fixes per snaps pr comments (#13721)

feature/default_network_editable
Hassan Malik 3 years ago committed by Erik Marks
parent a87c84e952
commit 9bb668d958
  1. 8
      ui/pages/settings/flask/view-snap/index.scss
  2. 11
      ui/pages/settings/flask/view-snap/view-snap.js

@ -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…
Cancel
Save