fix(onboarding): keep folder sidebar fixed-positioned during tutorial highlight

The .onboarding-target-highlight class sets position: relative, which
overrode .folder-sidebar's position: fixed (equal specificity, later
stylesheet). The sidebar left fixed positioning and moved in-flow, while
the spotlight/mask cutout stayed at the pre-highlight rect, leaving an
empty highlighted region during the folder sidebar step.
This commit is contained in:
Will Miao
2026-09-07 19:32:58 +08:00
parent 53fa22f39c
commit e747946f7a
+7
View File
@@ -44,6 +44,13 @@
pointer-events: auto !important;
}
/* Keep the fixed-position sidebar anchored when highlighted, otherwise
.onboarding-target-highlight's position: relative would pull it into
normal flow and it would move away from the spotlight cutout */
.folder-sidebar.onboarding-target-highlight {
position: fixed;
}
.onboarding-popup {
position: absolute;
background: var(--lora-surface);