mobile
This commit is contained in:
@@ -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" ? (
|
||||||
|
<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"}
|
{theme === "dark" ? "Switch to light" : "Switch to dark"}
|
||||||
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|||||||
@@ -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"] {
|
||||||
|
|||||||
Reference in New Issue
Block a user