Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 993659e

Browse files
authored
Merge pull request #11538 from kodadot/fix--layout-classes
fix: mobile layout on gallery and collection detail page
2 parents 9ed2313 + f6a0f7b commit 993659e

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

components/Error.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<script setup lang="ts">
2929
const props = withDefaults(
3030
defineProps<{
31-
errorCode: number
31+
errorCode?: number
3232
hasImg: boolean
3333
errorTitle: string
3434
errorSubtitle: string

components/shared/TabItem.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,23 @@ const icon = computed(() =>
5656
</script>
5757

5858
<style scoped lang="scss">
59+
@import '@/assets/styles/abstracts/mixins';
60+
5961
.control:not(:last-of-type) .explore-tabs-button {
6062
border-right: none;
6163
}
6264
6365
.control,
6466
.explore-tabs-button {
6567
width: 15rem;
66-
@apply bulma-until-widescreen:w-48 bulma-mobile:w-full;
68+
69+
@include bulma-mobile {
70+
width: 100% !important;
71+
}
72+
73+
@include bulma-until-widescreen {
74+
width: 12rem;
75+
}
6776
}
6877
6978
.full-width {

layouts/gallery-item-layout.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
<div class="min-h-full flex flex-col overflow-hidden">
33
<Navbar />
44
<main class="flex-grow py-8">
5-
<div
6-
class="relative mx-auto my-0 max-lg:!px-0 min-h-[3.25rem] w-full"
7-
:class="{ 'max-w-none md:!px-10 !px-5': !isTouch }"
8-
>
5+
<div class="container-fluid">
96
<Error
107
v-if="$nuxt.isOffline"
118
:has-img="false"
@@ -29,12 +26,9 @@ const route = useRoute()
2926
useHead({
3027
link: [
3128
{
32-
hid: 'canonical',
3329
rel: 'canonical',
3430
href: $config.public.baseUrl + route.path,
3531
},
3632
],
3733
})
38-
39-
const { isMobileOrTablet: isTouch } = useDevice()
4034
</script>

0 commit comments

Comments
 (0)