Fix justifying when no timestamp exists

This commit is contained in:
Jason Henriquez 2023-11-24 21:01:10 -06:00
parent 9c9ccae4e9
commit e12bea9af3
2 changed files with 14 additions and 8 deletions

View File

@ -11,22 +11,26 @@
padding-block: 5px;
padding-inline: 10px;
gap: 5px;
justify-content: space-between;
justify-content: flex-end;
border-inline-start: 2px solid var(--primary-color);
}
.floatingRefreshSection:has(.lastRefreshTimestamp + .refreshButton) {
justify-content: space-between;
}
.floatingRefreshSection.sideNavOpen {
inline-size: calc(100% - 200px);
}
@media only screen and (max-width: 680px) {
.floatingRefreshSection, .floatingRefreshSection.sideNavOpen {
inline-size: 100%;
}
}
.lastRefreshTimestamp {
text-align: center;
margin-block: 0;
font-size: 16px;
}
@media only screen and (max-width: 680px) {
.floatingRefreshSection, .floatingRefreshSection.sideNavOpen {
inline-size: 100%;
}
}

View File

@ -1,7 +1,9 @@
<template>
<div
class="floatingRefreshSection"
:class="{ sideNavOpen: isSideNavOpen }"
:class="{
sideNavOpen: isSideNavOpen
}"
>
<p
v-if="lastRefreshTimestamp"