Skip to content

Commit

Permalink
Merge pull request #157 from devishraq/fix/settings-modal-displacement
Browse files Browse the repository at this point in the history
fix for settings-modal displacement
  • Loading branch information
thecodingwizard authored Aug 23, 2024
2 parents 7580de2 + c6aed28 commit 0213c66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/settings/SettingsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const SettingsModal = ({
<Dialog
as="div"
static
className="fixed z-10 inset-0 overflow-y-auto"
className="fixed z-10 inset-0 overflow-y-scroll no-scrollbar"
open={isOpen}
onClose={() => closeWithoutSaving()}
>
Expand Down
8 changes: 8 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ html {
outline: none;
--tw-ring-color: transparent !important;
}

/* This hides the scrollbar */
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
scrollbar-width: none;
}

0 comments on commit 0213c66

Please sign in to comment.