From b3882de8930a70adb2f93a27be6370bfa1826587 Mon Sep 17 00:00:00 2001 From: Danshil Kokil Mungur Date: Fri, 24 Feb 2023 06:03:01 +0400 Subject: [PATCH] fix(ui): hide search bar behind slideover when opened (#3348) --- .vscode/settings.json | 5 ++++- src/components/Common/SlideOver/index.tsx | 2 +- src/styles/globals.css | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 45da7ba6..1a237571 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,5 +16,8 @@ } ], "editor.formatOnSave": true, - "typescript.preferences.importModuleSpecifier": "non-relative" + "typescript.preferences.importModuleSpecifier": "non-relative", + "files.associations": { + "globals.css": "tailwindcss" + } } diff --git a/src/components/Common/SlideOver/index.tsx b/src/components/Common/SlideOver/index.tsx index 6da8972a..ec2ea263 100644 --- a/src/components/Common/SlideOver/index.tsx +++ b/src/components/Common/SlideOver/index.tsx @@ -67,7 +67,7 @@ const SlideOver = ({ > {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
e.stopPropagation()} > diff --git a/src/styles/globals.css b/src/styles/globals.css index 8d040a00..97b2a7b8 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -43,8 +43,8 @@ } .slideover { - padding-top: calc(1rem + env(safe-area-inset-top)) !important; - padding-bottom: calc(1rem + env(safe-area-inset-top)) !important; + padding-top: calc(0.75rem + env(safe-area-inset-top)) !important; + padding-bottom: calc(0.75rem + env(safe-area-inset-top)) !important; } .sidebar-close-button {