File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ const onBack = () => {
78
78
</RouterView >
79
79
</header >
80
80
<RouterView v-slot =" { Component }" >
81
- <main ref =" mainRef" >
81
+ <main ref =" mainRef" :class = " { 'full-height': !isAuthenticated } " >
82
82
<GridBackground v-if =" !Component" :size =" 20" />
83
83
<Transition name =" scale" mode =" out-in" >
84
84
<KeepAlive >
@@ -102,7 +102,7 @@ const onBack = () => {
102
102
:on-after-leave =" onAfterLeave"
103
103
:on-after-enter =" onAfterEnter"
104
104
>
105
- <NDrawerContent :native-scrollbar =" false" >
105
+ <NDrawerContent v-if = " isAuthenticated " :native-scrollbar =" false" >
106
106
<!-- Header -->
107
107
<NFlex justify =" space-between" class =" panel-header" >
108
108
<NButton circle quaternary @click =" onBack" >
@@ -134,7 +134,7 @@ const onBack = () => {
134
134
@mouseenter =" footerOpen = true"
135
135
@mouseleave =" footerOpen = false"
136
136
>
137
- <CheckinComponent :parent-element =" footerRef" />
137
+ <CheckinComponent v-if = " isAuthenticated " :parent-element =" footerRef" />
138
138
</footer >
139
139
<DebugProvider />
140
140
</RouterView >
@@ -179,6 +179,11 @@ main {
179
179
justify-content : center ;
180
180
min-height : calc (var (--full-height ) - #{layout .$header-navbar-height } );
181
181
margin-top : layout .$header-navbar-height ;
182
+
183
+ & .full-height {
184
+ min-height : var (--full-height );
185
+ margin-top : 0 ;
186
+ }
182
187
}
183
188
184
189
footer {
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ onMounted(() => {
110
110
:class =" { progress, interval }"
111
111
prefix =" bar"
112
112
:style =" {
113
- minWidth: minWidth ?? `${ _message?.length }ch` ,
113
+ minWidth,
114
114
'--progress': `${ _progress }%`,
115
115
'--interval': `${interval}ms`,
116
116
}"
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ onDeactivated(() => onCancel());
154
154
</script >
155
155
156
156
<template >
157
- <NFlex vertical justify =" space-around" align =" center" >
157
+ <NFlex class = " login-container " vertical justify =" space-around" align =" center" >
158
158
<GridBackground :size =" 20" />
159
159
160
160
<Transition name =" scale" mode =" in-out" >
@@ -222,9 +222,14 @@ onDeactivated(() => onCancel());
222
222
</template >
223
223
224
224
<style lang="scss" scoped>
225
+ @use ' ~/styles/layout' as layout ;
225
226
@use ' ~/styles/transition' as transition ;
226
227
@include transition .scale (0.9 );
227
228
229
+ .login-container {
230
+ margin-top : layout .$header-navbar-height ;
231
+ }
232
+
228
233
.checkboxes {
229
234
align-self : center ;
230
235
width : fit-content ;
You can’t perform that action at this time.
0 commit comments