Skip to content

Commit b3be3a7

Browse files
committed
fix: breakpoint
1 parent c44f6d4 commit b3be3a7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

MaiChartManager/Front/src/components/Sidebar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default defineComponent({
5757
return () => (
5858
<>
5959
{/* Desktop sidebar */}
60-
<div class="max-[767px]:hidden w-16 flex flex-col items-center py-2 gap-1 h-100dvh shrink-0 border-r border-r-[oklch(0.9_0.02_var(--hue))] border-r-solid bg-[oklch(0.98_0.01_var(--hue))] z-20 relative cst">
60+
<div class="hidden md:flex w-16 flex-col items-center py-2 gap-1 h-100dvh shrink-0 border-r border-r-[oklch(0.9_0.02_var(--hue))] border-r-solid bg-[oklch(0.98_0.01_var(--hue))] z-20 relative cst">
6161
{items.map((item) => renderItem(item.key, item.icon, item.labelKey, true))}
6262
<div class="mt-auto" />
6363
{renderItem('settings', 'i-mdi-cog', 'sidebar.settings', true)}
@@ -67,7 +67,7 @@ export default defineComponent({
6767

6868
{/* Mobile bottom bar */}
6969
<div class={[
70-
'min-[768px]:hidden fixed bottom-0 left-0 right-0 z-50',
70+
'md:hidden fixed bottom-0 left-0 right-0 z-50',
7171
'flex items-center h-14 gap-1 px-1',
7272
'justify-center',
7373
'bg-[oklch(0.98_0.01_var(--hue))] border-t border-t-[oklch(0.9_0.02_var(--hue))] border-t-solid',

MaiChartManager/Front/src/views/Index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default defineComponent({
7070
<div class="" ref={mainDivRef as any}>
7171
<DragDropDispatcher />
7272
<Splash show={!loaded.value} />
73-
<div class={['grid cols-[auto_1fr] max-[768px]:cols-1']}>
73+
<div class={['grid cols-1 pb-14 md:pb-0 md:cols-[auto_1fr]']}>
7474
<Sidebar v-model:active={sidebarActive.value} />
7575
{sidebarActive.value === 'charts' && <Charts />}
7676
{sidebarActive.value === 'mods' && <ModManager />}

0 commit comments

Comments
 (0)