forked from Github/frigate
UI tweaks for screen sizes (#11155)
* Make bottom bar items easier to tap * Set max height on list of cameras and labels * remove incorrect character Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> --------- Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
@@ -6,12 +6,15 @@ import {
|
||||
import { isDesktop } from "react-device-detect";
|
||||
import { VscAccount } from "react-icons/vsc";
|
||||
|
||||
export default function AccountSettings() {
|
||||
type AccountSettingsProps = {
|
||||
className?: string;
|
||||
};
|
||||
export default function AccountSettings({ className }: AccountSettingsProps) {
|
||||
return (
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<div
|
||||
className={`flex flex-col justify-center items-center ${isDesktop ? "rounded-lg text-secondary-foreground bg-secondary hover:bg-muted cursor-pointer" : "text-secondary-foreground"}`}
|
||||
className={`flex flex-col justify-center items-center ${isDesktop ? "rounded-lg text-secondary-foreground bg-secondary hover:bg-muted cursor-pointer" : "text-secondary-foreground"} ${className ?? ""}`}
|
||||
>
|
||||
<VscAccount className="size-5 md:m-[6px]" />
|
||||
</div>
|
||||
|
||||
@@ -66,10 +66,10 @@ import {
|
||||
DialogTrigger,
|
||||
} from "../ui/dialog";
|
||||
|
||||
type GeneralSettings = {
|
||||
type GeneralSettingsProps = {
|
||||
className?: string;
|
||||
};
|
||||
export default function GeneralSettings({ className }: GeneralSettings) {
|
||||
export default function GeneralSettings({ className }: GeneralSettingsProps) {
|
||||
const { theme, colorScheme, setTheme, setColorScheme } = useTheme();
|
||||
const [restartDialogOpen, setRestartDialogOpen] = useState(false);
|
||||
const [restartingSheetOpen, setRestartingSheetOpen] = useState(false);
|
||||
|
||||
Reference in New Issue
Block a user