Skip to content

Commit 10a9beb

Browse files
committed
fix: correct theme breakpoints
1 parent 3f47da2 commit 10a9beb

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/node/unocss.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ const options: VitePluginConfig = {
5252
fontSize: {
5353
'6xl': ['3.5rem', '4rem']
5454
},
55+
breakpoints: {
56+
xs: '640px',
57+
sm: '768px',
58+
md: '960px',
59+
lg: '1280px'
60+
},
5561
colors: {
5662
brand: 'var(--island-c-brand)',
5763
'brand-light': 'var(--island-c-brand-light)',

src/theme-default/components/Aside/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function Aside(
7070

7171
return (
7272
<div flex="~ col 1">
73-
<div display={`${hasOutline ? 'block' : 'none'}`}>
73+
<div display={`${hasOutline ? 'lg:block' : 'none'}`}>
7474
<div
7575
relative=""
7676
divider-left=""

src/theme-default/components/Nav/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function Nav() {
5757
};
5858

5959
return (
60-
<header relative="" z="2" fixed="lg:~" className="top-0 left-0" w="100%">
60+
<header relative="" z="2" fixed="md:~" className="top-0 left-0" w="100%">
6161
<div
6262
relative=""
6363
p="l-8 sm:x-8"

0 commit comments

Comments
 (0)