···2222import { PaintSmall } from "components/Icons/PaintSmall";
2323import { AccentPickers } from "./Pickers/AccentPickers";
2424import { useLeafletPublicationData } from "components/PageSWRDataProvider";
2525+import { useIsMobile } from "src/hooks/isMobile";
25262627export type pickers =
2728 | "null"
···5051export const ThemePopover = (props: { entityID: string; home?: boolean }) => {
5152 let { rep } = useReplicache();
5253 let { data: pub } = useLeafletPublicationData();
5454+ let isMobile = useIsMobile();
53555456 // I need to get these variables from replicache and then write them to the DB. I also need to parse them into a state that can be used here.
5557 let permission = useEntitySetContext().permissions.write;
···7577 className="w-80 bg-white"
7678 arrowFill="#FFFFFF"
7779 asChild
8080+ side={isMobile ? "top" : "right"}
8181+ align={isMobile ? "center" : "start"}
7882 trigger={<ActionButton icon={<PaintSmall />} label="Theme" />}
7983 >
8084 <div className="themeSetterContent flex flex-col w-full overflow-y-scroll no-scrollbar">