This commit is contained in:
lda
2026-04-14 06:26:48 +07:00 Unverified
parent 457c5e4e03
commit 3aa49716d4
2 changed files with 21 additions and 1 deletions
+12 -1
View File
@@ -1,5 +1,6 @@
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { NavLink, Outlet } from "react-router-dom"; import { NavLink, Outlet } from "react-router-dom";
import { Moon, Sun } from "lucide-react";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
@@ -50,11 +51,21 @@ export function AppLayout() {
type="button" type="button"
variant="outline" variant="outline"
size="sm" size="sm"
className="fixed right-3 top-3 z-50 size-9 rounded-full p-0 sm:static sm:size-auto sm:rounded-md sm:px-3 sm:py-2"
aria-label={theme === "dark" ? "Switch to light" : "Switch to dark"}
title={theme === "dark" ? "Switch to light" : "Switch to dark"}
onClick={() => onClick={() =>
setTheme((current) => (current === "dark" ? "light" : "dark")) setTheme((current) => (current === "dark" ? "light" : "dark"))
} }
> >
{theme === "dark" ? "Switch to light" : "Switch to dark"} {theme === "dark" ? (
<Sun className="size-4" aria-hidden />
) : (
<Moon className="size-4" aria-hidden />
)}
<span className="hidden sm:inline">
{theme === "dark" ? "Switch to light" : "Switch to dark"}
</span>
</Button> </Button>
</header> </header>
+9
View File
@@ -139,6 +139,15 @@
.device-row .device-cell[data-label="Pick"] { .device-row .device-cell[data-label="Pick"] {
grid-area: select; grid-area: select;
display: flex;
align-items: center;
justify-content: flex-start;
padding-top: 0.15rem;
}
.device-row .device-cell[data-label="Pick"]::before {
display: none;
content: "";
} }
.device-row .device-cell[data-label="Presence"] { .device-row .device-cell[data-label="Presence"] {