Skip to content

Commit f3499c0

Browse files
authored
💄 Muxdbs 345 review feedback (#145)
* 💄 review feedback only show date * 💄 review feedback fix icon display * 💄 review feedback change header icon * 💄 review feedback fix margin * 💄 review feedback add icon to button * 💄 fix format
1 parent f74718f commit f3499c0

File tree

3 files changed

+30
-24
lines changed

3 files changed

+30
-24
lines changed

personalization-webcomponents/src/ChecklistOverview.ce.vue

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<div
88
v-if="checklists.length > 0 || !displayOptionDetailScreen"
99
:class="
10-
displayOptionDetailScreen ? 'details-background' : 'overview-padding'
10+
displayOptionDetailScreen ? 'details-background' : 'overview-margin'
1111
"
1212
>
1313
<div class="container">
1414
<div class="header">
1515
<div class="headline">
1616
<span class="header-icon">
17-
<muc-icon icon="calendar" />
17+
<muc-icon icon="order-bool-ascending" />
1818
</span>
1919
<h2 tabindex="0">
2020
<span v-if="displayOptionDetailScreen"
@@ -33,14 +33,14 @@
3333
>
3434
</h2>
3535
</div>
36-
<muc-link
36+
<muc-button
3737
v-if="!loadingError && checklists.length > 2 && !isMobile"
38-
label="Alle Checklisten anzeigen"
39-
icon="chevron-right"
40-
target="_self"
41-
no-underline
42-
:href="checklistOverviewUrl"
43-
/>
38+
icon="arrow-right"
39+
variant="ghost"
40+
@click="goToChecklistOverviewLink"
41+
>
42+
Alle Checklisten anzeigen
43+
</muc-button>
4444
</div>
4545
<error-alert
4646
v-if="loadingError"
@@ -62,15 +62,15 @@
6262
:checklist-detail-url="checklistDetailUrl"
6363
:displayed-on-detail-screen="displayOptionDetailScreen"
6464
/>
65-
<muc-link
65+
<muc-button
6666
v-if="!loadingError && checklists.length > 2 && isMobile"
6767
class="mobile-link"
68-
label="Alle Checklisten anzeigen"
69-
icon="chevron-right"
70-
target="_self"
71-
no-underline
72-
:href="checklistOverviewUrl"
73-
/>
68+
icon="arrow-right"
69+
variant="ghost"
70+
@click="goToChecklistOverviewLink"
71+
>
72+
Alle Checklisten anzeigen
73+
</muc-button>
7474
</div>
7575
</div>
7676
</div>
@@ -81,9 +81,9 @@
8181
import type DummyChecklist from "@/api/dummyservice/DummyChecklist.ts";
8282
8383
import {
84+
MucButton,
8485
MucCardContainer,
8586
MucIcon,
86-
MucLink,
8787
} from "@muenchen/muc-patternlab-vue";
8888
import customIconsSprite from "@muenchen/muc-patternlab-vue/assets/icons/custom-icons.svg?raw";
8989
import mucIconsSprite from "@muenchen/muc-patternlab-vue/assets/icons/muc-icons.svg?raw";
@@ -95,7 +95,7 @@ import ErrorAlert from "@/components/common/ErrorAlert.vue";
9595
import SkeletonLoader from "@/components/common/SkeletonLoader.vue";
9696
import { QUERY_PARAM_CHECKLIST_ID } from "@/util/Constants.ts";
9797
98-
const { displayedOnDetailScreen } = defineProps<{
98+
const { checklistOverviewUrl, displayedOnDetailScreen } = defineProps<{
9999
checklistDetailUrl: string;
100100
checklistOverviewUrl: string;
101101
newChecklistUrl: string;
@@ -109,6 +109,10 @@ const isMobile = ref(false);
109109
const displayOptionDetailScreen =
110110
displayedOnDetailScreen.toLowerCase() === "true";
111111
112+
const goToChecklistOverviewLink = () => {
113+
location.href = checklistOverviewUrl;
114+
};
115+
112116
const checksMobile = () => {
113117
isMobile.value = window.matchMedia("(max-width: 767px)").matches;
114118
};
@@ -143,9 +147,10 @@ onMounted(() => {
143147
</style>
144148

145149
<style scoped>
146-
/* Padding on overview page */
147-
.overview-padding {
148-
padding-top: 40px;
150+
/* Margin on overview page */
151+
.overview-margin {
152+
margin-top: 40px;
153+
margin-bottom: 48px;
149154
}
150155
151156
/* Background color on details page */
@@ -188,8 +193,8 @@ onMounted(() => {
188193
189194
/* CSS for desktop */
190195
@media (min-width: 768px) {
191-
.overview-padding {
192-
padding-top: 40px;
196+
.overview-margin {
197+
margin: 56px 0;
193198
}
194199
195200
.details-background {

personalization-webcomponents/src/components/ChecklistCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</div>
6060

6161
<div>
62-
<b>Letzte Änderung:</b> {{ checklist.lastUpdated.toLocaleString() }}
62+
<b>Letzte Änderung:</b> {{ checklist.lastUpdated.toLocaleDateString() }}
6363
</div>
6464
</template>
6565
</muc-card>

personalization-webcomponents/src/components/ChecklistCheckedCircle.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ defineProps<{
1717
height: 20px;
1818
border-radius: 50%;
1919
border: 2px solid var(--color-neutrals-grey);
20+
flex-shrink: 0;
2021
}
2122
2223
.circle.checked {

0 commit comments

Comments
 (0)