Better styling for toggle

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Scott Idem
2026-05-06 12:52:57 -04:00
parent 0ae8cf63d7
commit 6ebf4f125d

View File

@@ -437,7 +437,7 @@ function export_json() {
title="Group sessions by room"
aria-pressed={group_by_room}
class="flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium whitespace-nowrap transition-all duration-150 {group_by_room
? '!bg-primary-600 !text-white !shadow-sm ring-1 ring-primary-700'
? '!bg-primary-400 !text-white !shadow-sm ring-1 ring-primary-700'
: '!bg-transparent !text-surface-700 hover:!bg-surface-100-900 hover:!text-surface-950 dark:!text-surface-200 dark:hover:!text-surface-50'}">
<span class="fas fa-layer-group text-xs" aria-hidden="true"></span>
<span>By Room</span>
@@ -448,7 +448,7 @@ function export_json() {
title="Show all sessions as a flat list"
aria-pressed={!group_by_room}
class="border-surface-200-800 flex items-center gap-1.5 rounded-md border-l px-3 py-1.5 text-xs font-medium whitespace-nowrap transition-all duration-150 {!group_by_room
? '!bg-primary-600 !text-white !shadow-sm ring-1 ring-primary-700'
? '!bg-primary-400 !text-white !shadow-sm ring-1 ring-primary-700'
: '!bg-transparent !text-surface-700 hover:!bg-surface-100-900 hover:!text-surface-950 dark:!text-surface-200 dark:hover:!text-surface-50'}">
<span class="fas fa-list text-xs" aria-hidden="true"></span>
<span>Flat List</span>