Skip to content

Commit

Permalink
fix(ui): hide search bar behind slideover when opened (#3348)
Browse files Browse the repository at this point in the history
  • Loading branch information
danshilm committed Feb 24, 2023
1 parent af880a6 commit b3882de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Expand Up @@ -16,5 +16,8 @@
}
],
"editor.formatOnSave": true,
"typescript.preferences.importModuleSpecifier": "non-relative"
"typescript.preferences.importModuleSpecifier": "non-relative",
"files.associations": {
"globals.css": "tailwindcss"
}
}
2 changes: 1 addition & 1 deletion src/components/Common/SlideOver/index.tsx
Expand Up @@ -67,7 +67,7 @@ const SlideOver = ({
>
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
<div
className="slideover relative h-full w-screen max-w-md p-2 sm:p-4"
className="slideover relative h-full w-screen max-w-md p-2 sm:p-3"
ref={slideoverRef}
onClick={(e) => e.stopPropagation()}
>
Expand Down
4 changes: 2 additions & 2 deletions src/styles/globals.css
Expand Up @@ -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 {
Expand Down

0 comments on commit b3882de

Please sign in to comment.