about summary refs log tree commit diff
path: root/src/view
diff options
context:
space:
mode:
authorCλctys <git@cactys.dev>2023-12-01 01:14:36 +0100
committerGitHub <noreply@github.com>2023-11-30 16:14:36 -0800
commit5839d2a30ca19499617190970e7a6376f3724df5 (patch)
tree4e2bb2296f1174bd5bd2e891d4c5759a73b96661 /src/view
parent85b2b390df579d718ae061f53f7853a18bc0ca65 (diff)
downloadvoidsky-5839d2a30ca19499617190970e7a6376f3724df5.tar.zst
Fix scuffed web styles caused by overlapping viewport breakpoint boundaries (#1985)
* fixed lack of styles on 1300px web viewport width by adjusting tablet breakpoints

* fixed lack of styles on 800px web viewport width by adjusting mobile breakpoints

* changed `maxWidth` values in viewports to `n - 1` format
Diffstat (limited to 'src/view')
-rw-r--r--src/view/com/util/layouts/Breakpoints.web.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/com/util/layouts/Breakpoints.web.tsx b/src/view/com/util/layouts/Breakpoints.web.tsx
index 5cf73df0c..5106e3e1f 100644
--- a/src/view/com/util/layouts/Breakpoints.web.tsx
+++ b/src/view/com/util/layouts/Breakpoints.web.tsx
@@ -8,13 +8,13 @@ export const TabletOrDesktop = ({children}: React.PropsWithChildren<{}>) => (
   <MediaQuery minWidth={800}>{children}</MediaQuery>
 )
 export const Tablet = ({children}: React.PropsWithChildren<{}>) => (
-  <MediaQuery minWidth={800} maxWidth={1300}>
+  <MediaQuery minWidth={800} maxWidth={1300 - 1}>
     {children}
   </MediaQuery>
 )
 export const TabletOrMobile = ({children}: React.PropsWithChildren<{}>) => (
-  <MediaQuery maxWidth={1300}>{children}</MediaQuery>
+  <MediaQuery maxWidth={1300 - 1}>{children}</MediaQuery>
 )
 export const Mobile = ({children}: React.PropsWithChildren<{}>) => (
-  <MediaQuery maxWidth={800}>{children}</MediaQuery>
+  <MediaQuery maxWidth={800 - 1}>{children}</MediaQuery>
 )