diff --git a/src/hooks/useScreenLargerThan.ts b/src/hooks/useScreenLargerThan.ts index 4cb70371c..1b64ef336 100644 --- a/src/hooks/useScreenLargerThan.ts +++ b/src/hooks/useScreenLargerThan.ts @@ -4,5 +4,5 @@ import { useMediaQuery } from '@mantine/hooks'; export const useScreenLargerThan = (size: MantineSize | number) => { const { breakpoints } = useMantineTheme(); const pixelCount = typeof size === 'string' ? breakpoints[size] : size; - return useMediaQuery(`(min-width: ${pixelCount}px)`); + return useMediaQuery('(min-width: 500px)'); }; diff --git a/src/pages/404.tsx b/src/pages/404.tsx index eebe020eb..9b67c9cf7 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -55,7 +55,7 @@ const useStyles = createStyles((theme) => ({ description: { maxWidth: 540, margin: 'auto', - marginTop: parseInt(theme.spacing.xl, 10), + marginTop: theme.spacing.xl, marginBottom: `calc(${theme.spacing.xl} * 1.5)`, }, })); diff --git a/src/widgets/calendar/CalendarDay.tsx b/src/widgets/calendar/CalendarDay.tsx index e3920db8a..f41789a67 100644 --- a/src/widgets/calendar/CalendarDay.tsx +++ b/src/widgets/calendar/CalendarDay.tsx @@ -1,5 +1,6 @@ -import { Box, Indicator, IndicatorProps, Popover } from '@mantine/core'; +import { Box, Indicator, IndicatorProps, Popover, useMantineTheme } from '@mantine/core'; import { useDisclosure } from '@mantine/hooks'; +import { isToday } from '../../tools/isToday'; import { MediaList } from './MediaList'; import { MediasType } from './type'; @@ -10,6 +11,7 @@ interface CalendarDayProps { export const CalendarDay = ({ date, medias }: CalendarDayProps) => { const [opened, { close, open }] = useDisclosure(false); + const { colorScheme, colors } = useMantineTheme(); if (medias.totalCount === 0) { return