chore: fix preferences view when using custom titlebar [skip e2e]

This commit is contained in:
Aman Harwara
2023-08-15 00:54:19 +05:30
parent 2ba427602d
commit 4246c5181a
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ async function configureWindow(remoteBridge: CrossProcessBridge) {
/* Use custom title bar. Take the sn-titlebar-height off of
the app content height so its not overflowing */
sheet.insertRule(
'[role="dialog"] { height: calc(100vh - var(--sn-desktop-titlebar-height)) !important; top: var(--sn-desktop-titlebar-height); }',
'[role="dialog"] { height: calc(100vh - var(--sn-desktop-titlebar-height)) !important; margin-top: var(--sn-desktop-titlebar-height); }',
sheet.cssRules.length,
)
sheet.insertRule(

View File

@@ -50,7 +50,7 @@ const PreferencesViewWrapper: FunctionComponent<PreferencesViewWrapperProps> = (
animate="mobile"
animationVariant="horizontal"
close={application.preferencesController.closePreferences}
className="md:h-full md:!max-h-full md:!w-full"
className="md:!border-0 md:h-full md:!max-h-full md:!w-full"
>
<PreferencesView
closePreferences={application.preferencesController.closePreferences}