mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 21:25:24 +03:00
make calendar use active color when not default
This commit is contained in:
parent
0c925e444b
commit
c499750762
@ -422,9 +422,17 @@ function CalendarFilterButton({
|
||||
);
|
||||
|
||||
const trigger = (
|
||||
<Button size="sm" className="flex items-center gap-2" variant="secondary">
|
||||
<FaCalendarAlt className="text-secondary-foreground" />
|
||||
<div className="hidden md:block text-primary-foreground">
|
||||
<Button
|
||||
size="sm"
|
||||
className={`flex items-center gap-2 ${day == undefined ? "bg-secondary hover:bg-secondary/80" : "bg-selected hover:bg-selected"}`}
|
||||
variant="secondary"
|
||||
>
|
||||
<FaCalendarAlt
|
||||
className={`${day == undefined ? "text-secondary-foreground" : "text-primary dark:text-primary-foreground"}`}
|
||||
/>
|
||||
<div
|
||||
className={`hidden md:block ${day == undefined ? "text-primary-foreground" : "text-primary dark:text-primary-foreground"}`}
|
||||
>
|
||||
{day == undefined ? "Last 24 Hours" : selectedDate}
|
||||
</div>
|
||||
</Button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user