From 7a375abfb7cc9baaa022eadfaedc687bc4936bc3 Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Mon, 28 Sep 2026 10:46:36 +0200 Subject: [PATCH] ui : put the model filters in a carousel and give controls a pointer The capability and modality toggles were two groups, and the toolbar had grown to two rows at 1280px. They are one group now and the row scrolls with the same carousel the settings header uses. An active toggle keeps the app's gray instead of taking the primary fill. Tailwind v4 leaves buttons on the default cursor, so pressable controls get the pointer back. Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash --- tools/ui/src/app.css | 23 ++++++ .../ModelsManager/ModelsManagerFilters.svelte | 73 +++++++++---------- 2 files changed, 59 insertions(+), 37 deletions(-) diff --git a/tools/ui/src/app.css b/tools/ui/src/app.css index f1b8ac7168..ccf13fbec3 100644 --- a/tools/ui/src/app.css +++ b/tools/ui/src/app.css @@ -10,6 +10,29 @@ @custom-variant data-horizontal (&[data-orientation='horizontal']); @custom-variant data-vertical (&[data-orientation='vertical']); +/* + * Tailwind v4 dropped the pointer cursor from buttons. Every control a user can + * press gets it back, and anything disabled keeps the cursor its own class asks for. + */ +@layer base { + button:not(:disabled), + [role='button']:not([data-disabled]), + [role='checkbox']:not([data-disabled]), + [role='combobox']:not([data-disabled]), + [role='menuitem']:not([data-disabled]), + [role='menuitemcheckbox']:not([data-disabled]), + [role='menuitemradio']:not([data-disabled]), + [role='option']:not([data-disabled]), + [role='radio']:not([data-disabled]), + [role='switch']:not([data-disabled]), + [role='tab']:not([data-disabled]), + label[for], + select, + summary { + cursor: pointer; + } +} + :root { --radius: 0.625rem; --background: oklch(1 0 0); diff --git a/tools/ui/src/lib/components/app/models/ModelsManager/ModelsManagerFilters.svelte b/tools/ui/src/lib/components/app/models/ModelsManager/ModelsManagerFilters.svelte index 055de72200..e83e018dbe 100644 --- a/tools/ui/src/lib/components/app/models/ModelsManager/ModelsManagerFilters.svelte +++ b/tools/ui/src/lib/components/app/models/ModelsManager/ModelsManagerFilters.svelte @@ -1,7 +1,7 @@