fix: Fixed issue where popover/modal headers would get cut off by desktop titlebar
This commit is contained in:
@@ -202,7 +202,7 @@ async function createWindowServices(window: Electron.BrowserWindow, appState: Ap
|
||||
initializeZoomManager(window, appState.store)
|
||||
|
||||
const backupsManager = createBackupsManager(window.webContents, appState)
|
||||
const updateManager = setupUpdates(window, appState, backupsManager)
|
||||
// const updateManager = setupUpdates(window, appState, backupsManager)
|
||||
const trayManager = createTrayManager(window, appState.store)
|
||||
const spellcheckerManager = createSpellcheckerManager(appState.store, window.webContents, appLocale)
|
||||
const mediaManager = new MediaManager()
|
||||
@@ -224,7 +224,7 @@ async function createWindowServices(window: Electron.BrowserWindow, appState: Ap
|
||||
|
||||
return {
|
||||
backupsManager,
|
||||
updateManager,
|
||||
// updateManager,
|
||||
trayManager,
|
||||
spellcheckerManager,
|
||||
menuManager,
|
||||
|
||||
@@ -117,9 +117,8 @@ async function configureWindow(remoteBridge: CrossProcessBridge) {
|
||||
} else {
|
||||
/* Use custom title bar. Take the sn-titlebar-height off of
|
||||
the app content height so its not overflowing */
|
||||
sheet.insertRule('body { padding-top: var(--sn-desktop-titlebar-height); }', sheet.cssRules.length)
|
||||
sheet.insertRule(
|
||||
'@media screen and (max-width: 768px) { [data-popover] { padding-top: calc(var(--sn-desktop-titlebar-height) + 0.5rem); } }',
|
||||
'body, [data-reach-dialog-overlay], [data-mobile-popover] { padding-top: var(--sn-desktop-titlebar-height) !important; }',
|
||||
sheet.cssRules.length,
|
||||
)
|
||||
sheet.insertRule(
|
||||
|
||||
Reference in New Issue
Block a user