Skip to content

Commit

Permalink
fix(view): set default view to be PC
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 26, 2022
1 parent 98773d3 commit 1b8fc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/utils/ThemeOverride.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const useTooltipStyles = createStyles((theme) => ({
export const useIsMobile = (limit?: number) => {
const view = useViewportSize()
const theme = useMantineTheme()
return { loaded: view.width > 0, isMobile: view.width < (limit ?? theme.breakpoints.xs) }
return { loaded: view.width > 0, isMobile: view.width > 0 && view.width < (limit ?? theme.breakpoints.xs) }
}

export const ACCEPT_IMAGE_MIME_TYPE = [
Expand Down

0 comments on commit 1b8fc10

Please sign in to comment.