Skip to content

Commit b3882de

Browse files
authored
fix(ui): hide search bar behind slideover when opened (sct#3348)
1 parent af880a6 commit b3882de

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
}
1717
],
1818
"editor.formatOnSave": true,
19-
"typescript.preferences.importModuleSpecifier": "non-relative"
19+
"typescript.preferences.importModuleSpecifier": "non-relative",
20+
"files.associations": {
21+
"globals.css": "tailwindcss"
22+
}
2023
}

src/components/Common/SlideOver/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const SlideOver = ({
6767
>
6868
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
6969
<div
70-
className="slideover relative h-full w-screen max-w-md p-2 sm:p-4"
70+
className="slideover relative h-full w-screen max-w-md p-2 sm:p-3"
7171
ref={slideoverRef}
7272
onClick={(e) => e.stopPropagation()}
7373
>

src/styles/globals.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
}
4444

4545
.slideover {
46-
padding-top: calc(1rem + env(safe-area-inset-top)) !important;
47-
padding-bottom: calc(1rem + env(safe-area-inset-top)) !important;
46+
padding-top: calc(0.75rem + env(safe-area-inset-top)) !important;
47+
padding-bottom: calc(0.75rem + env(safe-area-inset-top)) !important;
4848
}
4949

5050
.sidebar-close-button {

0 commit comments

Comments
 (0)