chore: fix preferences view when using custom titlebar [skip e2e]
This commit is contained in:
@@ -128,7 +128,7 @@ async function configureWindow(remoteBridge: CrossProcessBridge) {
|
|||||||
/* Use custom title bar. Take the sn-titlebar-height off of
|
/* Use custom title bar. Take the sn-titlebar-height off of
|
||||||
the app content height so its not overflowing */
|
the app content height so its not overflowing */
|
||||||
sheet.insertRule(
|
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.cssRules.length,
|
||||||
)
|
)
|
||||||
sheet.insertRule(
|
sheet.insertRule(
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const PreferencesViewWrapper: FunctionComponent<PreferencesViewWrapperProps> = (
|
|||||||
animate="mobile"
|
animate="mobile"
|
||||||
animationVariant="horizontal"
|
animationVariant="horizontal"
|
||||||
close={application.preferencesController.closePreferences}
|
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
|
<PreferencesView
|
||||||
closePreferences={application.preferencesController.closePreferences}
|
closePreferences={application.preferencesController.closePreferences}
|
||||||
|
|||||||
Reference in New Issue
Block a user