Skip to content

Commit ec308d5

Browse files
authored
Merge pull request #31 from connorabbas/develop
Layout fixes
2 parents 24af856 + 3ccf40e commit ec308d5

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

resources/js/Components/PrimeVue/LinksMenuBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defineExpose({
88
</script>
99

1010
<template>
11-
<Menubar ref="child-ref">
11+
<Menubar ref="child-ref" breakpoint="1024px">
1212
<template v-if="$slots.start" #start>
1313
<slot name="start"></slot>
1414
</template>

resources/js/Layouts/AuthenticatedLayout.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ onUnmounted(() => {
7070
window.removeEventListener('resize', updateWidth);
7171
});
7272
watchEffect(() => {
73-
if (windowWidth.value > 768) {
73+
if (windowWidth.value > 1024) {
7474
mobileMenuOpen.value = false;
7575
}
7676
});
@@ -111,7 +111,7 @@ watchEffect(() => {
111111
</div>
112112
</template>
113113
<template #end>
114-
<div class="hidden md:flex md:items-center md:ms-6">
114+
<div class="hidden lg:flex items-center ms-6">
115115
<ToggleThemeButton
116116
text
117117
severity="secondary"
@@ -139,15 +139,19 @@ watchEffect(() => {
139139
</div>
140140
</div>
141141

142-
<!-- Hamburger -->
143-
<div class="flex items-center md:hidden">
142+
<!-- Mobile Hamburger -->
143+
<div class="flex items-center lg:hidden">
144144
<div class="relative">
145145
<Button
146146
text
147-
rounded
148147
severity="secondary"
149148
icon="pi pi-bars"
150149
@click="mobileMenuOpen = true"
150+
:pt="{
151+
icon: {
152+
class: 'text-xl',
153+
},
154+
}"
151155
/>
152156
</div>
153157
</div>

0 commit comments

Comments
 (0)