Skip to content

Commit 4e75072

Browse files
committed
💄 fix mobile layout
1 parent bfb8b62 commit 4e75072

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

personalization-webcomponents/src/my-checklists.vue

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
<template>
2-
<main>
2+
<main class="container">
33
<!-- eslint-disable-next-line vue/no-v-html -->
44
<div v-html="mucIconsSprite"/>
55
<!-- eslint-disable-next-line vue/no-v-html -->
66
<div v-html="customIconsSprite"/>
7-
<h1
8-
style="padding-bottom: 24px;"
7+
<h2
8+
style="display: flex; align-items: center; margin-bottom: 24px;"
99
>
10-
<muc-icon icon="order-bool-ascending"></muc-icon>
10+
<muc-icon
11+
style="width: 32px; height: 32px; margin-right: 8px;"
12+
icon="order-bool-ascending"
13+
></muc-icon>
1114
Aktive Checklisten ({{ checklists.length }})
12-
</h1>
15+
</h2>
1316
<muc-card-container
14-
style="grid-template-columns: repeat(auto-fit,589px)"
17+
class="checklist-card-container"
1518
>
1619
<skeleton-loader
1720
v-for="() in [1,2,3,4]"
@@ -63,3 +66,16 @@ onMounted(() => {
6366
@import "@muenchen/muc-patternlab-vue/assets/css/custom-style.css";
6467
@import "@muenchen/muc-patternlab-vue/style.css";
6568
</style>
69+
70+
<style scoped>
71+
.checklist-card-container {
72+
grid-template-columns: repeat(auto-fit, 100%);
73+
}
74+
75+
@media (min-width: 768px) {
76+
.checklist-card-container {
77+
grid-template-columns: repeat(auto-fit,589px);
78+
}
79+
}
80+
81+
</style>

0 commit comments

Comments
 (0)