Skip to content

Commit 7beb4c9

Browse files
committed
feat: update responsive
1 parent 992a11c commit 7beb4c9

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

components/settings/Layout.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
</p>
1414
</div>
1515
<Separator class="my-6" />
16-
<div class="flex flex-col lg:flex-row space-y-8 lg:space-x-12 lg:space-y-0">
17-
<ScrollArea class="lg:w-1/6">
16+
<div class="flex flex-col lg:flex-row space-y-6 lg:space-x-12 lg:space-y-0">
17+
<div class="w-full overflow-x-auto pb-2 lg:w-1/6 lg:pb-0">
1818
<SettingsSidebarNav />
19-
</ScrollArea>
19+
</div>
2020
<div class="flex-1 lg:max-w-2xl">
2121
<div class="space-y-6">
2222
<slot />

components/ui/sidebar/SidebarInset.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const props = defineProps<{
1010
<template>
1111
<main
1212
:class="cn(
13-
'relative flex min-h-svh flex-1 flex-col bg-background',
13+
'overflow-x-auto relative flex min-h-svh flex-1 flex-col bg-background',
1414
'peer-data-[variant=inset]:min-h-[calc(100svh-1rem)] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset][&>header]:rounded-t-xl md:peer-data-[variant=inset]:shadow',
1515
props.class,
1616
)"

components/ui/table/Table.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const props = defineProps<{
88
</script>
99

1010
<template>
11-
<div class="relative w-full overflow-auto">
12-
<table :class="cn('w-full caption-bottom text-sm', props.class)">
11+
<div class="relative w-full overflow-x-auto">
12+
<table :class="cn('min-w-full table-fixed caption-bottom text-sm', props.class)">
1313
<slot />
1414
</table>
1515
</div>

layouts/default.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<LayoutAppSidebar />
77
<SidebarInset>
88
<LayoutHeader />
9-
<div class="flex-1 p-4 lg:p-6">
9+
<div class="min-w-0 w-full flex-1 overflow-x-auto p-4 lg:p-6">
1010
<slot />
1111
</div>
1212
</SidebarInset>

pages/tasks.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import tasks from '@/components/tasks/data/tasks.json'
55
</script>
66

77
<template>
8-
<div class="w-full flex flex-col gap-4">
8+
<div class="w-full flex flex-col items-stretch gap-4">
99
<div class="flex flex-wrap items-end justify-between gap-2">
1010
<div>
1111
<h2 class="text-2xl font-bold tracking-tight">

0 commit comments

Comments
 (0)