fix(desktop): only add extra popover padding for small windows

This commit is contained in:
Aman Harwara
2022-11-03 15:59:48 +05:30
parent 636963b409
commit ac96e197e0

View File

@@ -122,7 +122,7 @@ async function configureWindow(remoteBridge: CrossProcessBridge) {
the app content height so its not overflowing */
sheet.insertRule('body { padding-top: var(--sn-desktop-titlebar-height); }', sheet.cssRules.length)
sheet.insertRule(
'[data-popover] { padding-top: calc(var(--sn-desktop-titlebar-height) + 0.5rem); }',
'@media screen and (max-width: 768px) { [data-popover] { padding-top: calc(var(--sn-desktop-titlebar-height) + 0.5rem); } }',
sheet.cssRules.length,
)
sheet.insertRule(