fix(ZenGlance): update padding and element separation for zen-glance background

fix(ZenCompactMode): modify flashSidebarIfNecessary to recalculate URL height conditionally
This commit is contained in:
mr. m
2025-04-13 19:20:59 +02:00
parent 5a2b469e8a
commit 73749aa34c
2 changed files with 5 additions and 3 deletions

View File

@@ -84,8 +84,8 @@
}
:root[zen-no-padding='true'] .browserSidebarContainer.zen-glance-background {
--zen-native-inner-radius: 4px;
--zen-element-separation: 4px;
--zen-native-inner-radius: 6px;
--zen-element-separation: 6px;
}
.browserSidebarContainer.zen-glance-background,

View File

@@ -97,7 +97,9 @@ var gZenCompactModeManager = {
flashSidebarIfNecessary(aInstant = false) {
// This function is called after exiting DOM fullscreen mode,
// so we do a bit of a hack to re-calculate the URL height
gZenVerticalTabsManager.recalculateURLBarHeight();
if (aInstant) {
gZenVerticalTabsManager.recalculateURLBarHeight();
}
if (!aInstant && this.preference && lazyCompactMode.COMPACT_MODE_FLASH_ENABLED && !gZenGlanceManager._animating) {
this.flashSidebar();
}