mirror of
https://github.com/logseq/logseq.git
synced 2026-05-24 04:34:14 +00:00
Add gradient fade to keymap header when section headers are absent
Uses :has(.th) to detect when category section headers are in the DOM. When searching/filtering removes them, the header's bottom padding fades to transparent so list items scroll away smoothly instead of a hard cutoff. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -183,6 +183,10 @@ button.shortcut-feedback-action {
|
||||
background-color: hsl(var(--background));
|
||||
}
|
||||
|
||||
&:not(:has(.th)) > header {
|
||||
background: linear-gradient(to bottom, hsl(var(--background)) calc(100% - 20px), transparent);
|
||||
}
|
||||
|
||||
.shortcut-empty-state {
|
||||
@apply flex flex-col items-center justify-center gap-2 select-none;
|
||||
min-height: calc(60dvh - var(--shortcut-header-h, 120px));
|
||||
|
||||
Reference in New Issue
Block a user