Set the settings filter apart from the list it filters

- Put the filter in its own bar over a divider
- Centre the search icon in the field
This commit is contained in:
piexel committed 2026-11-25 19:26:31 +01:00
1 parent f1482bf338
commit 7db66241c9
2 files changed
+2 -2

No files matched your search

@@ -62,7 +62,7 @@ export function KeymapPage({ views }: { views: ViewInfo[] }): React.JSX.Element
description="Click a shortcut's keys, then press the new key. Esc can be chosen too; click the keys again to cancel."
toolbar={
<div className="relative flex-1">
<Glyph glyph="search" className="pointer-events-none absolute top-1.5 left-2" />
<Glyph glyph="search" className="pointer-events-none absolute top-1/2 left-2 -translate-y-1/2" />
<Input className="pl-7" placeholder="Filter by name or key" value={filter} onChange={(event) => setFilter(event.target.value)} />
</div>
}
@@ -19,7 +19,7 @@ export function SettingsPage({ title, description, toolbar, footer, children }:
<h2 className="text-[15px] font-semibold">{title}</h2>
{description !== undefined && <p className="mt-1 text-muted-foreground">{description}</p>}
</header>
{toolbar !== undefined && <div className="flex items-center gap-2 px-6 pt-4">{toolbar}</div>}
{toolbar !== undefined && <div className="flex items-center gap-2 border-b px-6 py-3">{toolbar}</div>}
<ScrollArea className="min-h-0 flex-1">
<div className="flex flex-col gap-5 px-6 py-4">{children}</div>
</ScrollArea>