From 219f8e6299f81b9927c1d04522e9ae507620467c Mon Sep 17 00:00:00 2001 From: Hassan Malik <41640681+hmalik88@users.noreply.github.com> Date: Wed, 23 Feb 2022 15:16:41 -0500 Subject: [PATCH] minor fixes per snaps pr comments (#13721) --- ui/pages/settings/flask/view-snap/index.scss | 8 ++++++-- ui/pages/settings/flask/view-snap/view-snap.js | 11 ++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ui/pages/settings/flask/view-snap/index.scss b/ui/pages/settings/flask/view-snap/index.scss index d0efae6f7..4d672ef7a 100644 --- a/ui/pages/settings/flask/view-snap/index.scss +++ b/ui/pages/settings/flask/view-snap/index.scss @@ -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%; diff --git a/ui/pages/settings/flask/view-snap/view-snap.js b/ui/pages/settings/flask/view-snap/view-snap.js index 14c2b050e..5986b7b5b 100644 --- a/ui/pages/settings/flask/view-snap/view-snap.js +++ b/ui/pages/settings/flask/view-snap/view-snap.js @@ -86,15 +86,12 @@ function ViewSnap() { url={authorshipPillUrl} /> - + @@ -155,8 +152,8 @@ function ViewSnap() { css={{ maxWidth: '175px', }} - onClick={async () => { - await dispatch(removeSnap(snap)); + onClick={() => { + dispatch(removeSnap(snap)); }} > {t('removeSnap')}