feat: move the update available dialoge always to the bottom
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2022-09-14 19:06:34 +02:00
parent a6e9b36bd6
commit a18c6ab8d8
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 10 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="update-notification" v-if="updateAvailable">
<p>{{ $t('update.available') }}</p>
<x-button @click="refreshApp()" :shadow="false">
<x-button @click="refreshApp()" :shadow="false" class="has-no-text-wrap">
{{ $t('update.do') }}
</x-button>
</div>
@ -43,24 +43,19 @@ function refreshApp() {
<style lang="scss" scoped>
.update-notification {
margin: .5rem;
display: flex;
align-items: center;
background: $warning;
padding: 0 .25rem;
padding: .5rem;
border-radius: $radius;
font-size: .9rem;
color: var(--grey-900);
justify-content: space-between;
@media screen and (max-width: $desktop) {
position: fixed;
bottom: 1rem;
margin: 0;
width: 450px;
left: calc(50vw - 225px);
padding: .5rem;
}
position: fixed;
bottom: 1rem;
width: 450px;
left: calc(50vw - 225px);
@media screen and (max-width: $tablet) {
position: fixed;

View File

@ -3,3 +3,7 @@
display: none !important;
}
}
.has-no-text-wrap {
white-space: nowrap !important;
}