diff --git a/web/src/components/ViewSetting.tsx b/web/src/components/ViewSetting.tsx index d2f4745..5deb504 100644 --- a/web/src/components/ViewSetting.tsx +++ b/web/src/components/ViewSetting.tsx @@ -1,5 +1,4 @@ -import { Button, Divider, Option, Select } from "@mui/joy"; -import { toast } from "react-hot-toast"; +import { Divider, Option, Select, Switch } from "@mui/joy"; import useViewStore from "../stores/v1/view"; import Icon from "./Icon"; import Dropdown from "./common/Dropdown"; @@ -10,11 +9,6 @@ const ViewSetting = () => { const { field, direction } = order; const displayStyle = viewStore.displayStyle || "full"; - const handleReset = () => { - viewStore.setOrder({ field: "name", direction: "asc" }); - toast.success("Order reset"); - }; - return ( { } actionsClassName="!mt-3 !-right-2" actions={ -
e.stopPropagation()}> -
- View order - +
e.stopPropagation()}> +
+ Compact mode + viewStore.setDisplayStyle(event.target.checked ? "compact" : "full")} + />
+
Order by
- -
- Display - -
} >