Skip to content

Commit fd117e4

Browse files
authored
better container
1 parent fb1ee70 commit fd117e4

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed
Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
defineProps({
2+
const props = defineProps({
33
spacedMobile: {
44
type: Boolean,
55
default: true,
@@ -10,15 +10,25 @@ defineProps({
1010
default: false,
1111
required: false,
1212
},
13+
vertical: {
14+
type: Boolean,
15+
default: false,
16+
required: false,
17+
},
1318
});
1419
</script>
1520

1621
<template>
17-
<div :class="[
18-
{ 'max-w-(--breakpoint-2xl) mx-auto': !fluid },
19-
spacedMobile ? 'px-4' : 'px-0',
20-
'md:px-8',
21-
]">
22+
<div
23+
class="md:px-8"
24+
:class="[
25+
{
26+
'max-w-(--breakpoint-2xl) mx-auto': !props.fluid,
27+
'py-4 md:py-8 space-y-4 md:space-y-8': props.vertical
28+
},
29+
props.spacedMobile ? 'px-4' : 'px-0',
30+
]"
31+
>
2232
<slot />
2333
</div>
2434
</template>

resources/js/Pages/Admin/Users/Index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const {
5757
<AuthenticatedAdminLayout
5858
:breadcrumbs="breadcrumbs"
5959
>
60-
<Container fluid>
60+
<Container vertical fluid>
6161
<PageTitleSection>
6262
<template #title>
6363
{{ pageTitle }}

0 commit comments

Comments
 (0)