7
7
<div
8
8
v-if =" checklists.length > 0 || !displayOptionDetailScreen"
9
9
:class ="
10
- displayOptionDetailScreen ? 'details-background' : 'overview-padding '
10
+ displayOptionDetailScreen ? 'details-background' : 'overview-margin '
11
11
"
12
12
>
13
13
<div class =" container" >
14
14
<div class =" header" >
15
15
<div class =" headline" >
16
16
<span class =" header-icon" >
17
- <muc-icon icon =" calendar " />
17
+ <muc-icon icon =" order-bool-ascending " />
18
18
</span >
19
19
<h2 tabindex =" 0" >
20
20
<span v-if =" displayOptionDetailScreen"
33
33
>
34
34
</h2 >
35
35
</div >
36
- <muc-link
36
+ <muc-button
37
37
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 >
44
44
</div >
45
45
<error-alert
46
46
v-if =" loadingError"
62
62
:checklist-detail-url =" checklistDetailUrl"
63
63
:displayed-on-detail-screen =" displayOptionDetailScreen"
64
64
/>
65
- <muc-link
65
+ <muc-button
66
66
v-if =" !loadingError && checklists.length > 2 && isMobile"
67
67
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 >
74
74
</div >
75
75
</div >
76
76
</div >
81
81
import type DummyChecklist from " @/api/dummyservice/DummyChecklist.ts" ;
82
82
83
83
import {
84
+ MucButton ,
84
85
MucCardContainer ,
85
86
MucIcon ,
86
- MucLink ,
87
87
} from " @muenchen/muc-patternlab-vue" ;
88
88
import customIconsSprite from " @muenchen/muc-patternlab-vue/assets/icons/custom-icons.svg?raw" ;
89
89
import mucIconsSprite from " @muenchen/muc-patternlab-vue/assets/icons/muc-icons.svg?raw" ;
@@ -95,7 +95,7 @@ import ErrorAlert from "@/components/common/ErrorAlert.vue";
95
95
import SkeletonLoader from " @/components/common/SkeletonLoader.vue" ;
96
96
import { QUERY_PARAM_CHECKLIST_ID } from " @/util/Constants.ts" ;
97
97
98
- const { displayedOnDetailScreen } = defineProps <{
98
+ const { checklistOverviewUrl, displayedOnDetailScreen } = defineProps <{
99
99
checklistDetailUrl: string ;
100
100
checklistOverviewUrl: string ;
101
101
newChecklistUrl: string ;
@@ -109,6 +109,10 @@ const isMobile = ref(false);
109
109
const displayOptionDetailScreen =
110
110
displayedOnDetailScreen .toLowerCase () === " true" ;
111
111
112
+ const goToChecklistOverviewLink = () => {
113
+ location .href = checklistOverviewUrl ;
114
+ };
115
+
112
116
const checksMobile = () => {
113
117
isMobile .value = window .matchMedia (" (max-width: 767px)" ).matches ;
114
118
};
@@ -143,9 +147,10 @@ onMounted(() => {
143
147
</style >
144
148
145
149
<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 ;
149
154
}
150
155
151
156
/* Background color on details page */
@@ -188,8 +193,8 @@ onMounted(() => {
188
193
189
194
/* CSS for desktop */
190
195
@media (min-width : 768px ) {
191
- .overview-padding {
192
- padding-top : 40 px ;
196
+ .overview-margin {
197
+ margin : 56 px 0 ;
193
198
}
194
199
195
200
.details-background {
0 commit comments