Skip to content

Commit

Permalink
Use em for retina display
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoya committed Oct 3, 2024
1 parent c03f6cd commit b81bdb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ import {
Text,
Group,
rem,
em,
} from "@mantine/core";
import "@mantine/core/styles.css";
import { useDisclosure, useHeadroom, useMediaQuery } from "@mantine/hooks";
import { useAwesomeYasunori } from "./hooks/use-awesome-yasunori";

export function Layout({ children }: { children: React.ReactNode }) {
const { data } = useAwesomeYasunori();
const isMobile = useMediaQuery("(max-width: 767px)");
const isMobile = useMediaQuery(`(max-width: ${em(767)})`);
const pinned = useHeadroom({ fixedAt: 120 });
const [opened, { toggle, close }] = useDisclosure();
const navigate = useNavigate();
Expand Down

0 comments on commit b81bdb8

Please sign in to comment.