From 23409e6f2ffb060e7914db28375e141a6087ddfa Mon Sep 17 00:00:00 2001 From: Ryan Cohen Date: Wed, 24 Aug 2022 20:57:30 +0900 Subject: [PATCH] fix: correct safe margin for slideover (#2977) --- src/components/Common/ButtonWithDropdown/index.tsx | 9 +++++---- src/components/Common/SlideOver/index.tsx | 4 ++-- src/styles/globals.css | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/Common/ButtonWithDropdown/index.tsx b/src/components/Common/ButtonWithDropdown/index.tsx index edb5a7499..25162ac04 100644 --- a/src/components/Common/ButtonWithDropdown/index.tsx +++ b/src/components/Common/ButtonWithDropdown/index.tsx @@ -19,11 +19,11 @@ const DropdownItem = ({ switch (buttonType) { case 'ghost': styleClass += - ' bg-gray-700 hover:bg-gray-600 focus:border-gray-500 focus:text-white'; + ' bg-transparent rounded hover:bg-gradient-to-br from-indigo-600 to-purple-600 text-white focus:border-gray-500 focus:text-white'; break; default: styleClass += - ' bg-indigo-600 hover:bg-indigo-500 focus:border-indigo-700 focus:text-white'; + ' bg-indigo-600 rounded hover:bg-indigo-500 focus:border-indigo-700 focus:text-white'; } return ( {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
e.stopPropagation()} >
-
+

{title} diff --git a/src/styles/globals.css b/src/styles/globals.css index b3e2543ee..1d16b5087 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -36,8 +36,8 @@ } .slideover { - padding-top: calc(1.5rem + env(safe-area-inset-top)); - padding-bottom: 1.5rem; + padding-top: calc(1rem + env(safe-area-inset-top)) !important; + padding-bottom: calc(1rem + env(safe-area-inset-top)) !important; } .sidebar-close-button {