🩹 Add back some styling

These weren't correctly updated afeter the style refactor
(Stats and PhpOpcache widgets).
This commit is contained in:
Marcell Fülöp 2022-06-21 19:22:01 +00:00
parent 0674ad8fe8
commit f21f44ce21
2 changed files with 16 additions and 4 deletions

View File

@ -5,11 +5,11 @@
<p v-tooltip="opcacheStartTimeTooltip()">
<i class="fal fa-microchip"></i>
<strong>PHP opcache</strong>&nbsp;
<em v-if="opcache.opcache_enabled" class="success">
<em v-if="opcache.opcache_enabled" class="oc-enabled">
{{ tt('enabled') }}
</em>
<em v-else class="disabled">{{ tt('disabled') }}</em>&nbsp;
<strong v-if="opcache.cache_full" class="danger">
<em v-else class="oc-disabled">{{ tt('disabled') }}</em>&nbsp;
<strong v-if="opcache.cache_full" class="oc-full">
<i class="far fa-siren-on"></i>{{ tt('cache-full') }}
</strong>
</p>
@ -200,4 +200,15 @@ export default {
<style scoped lang="scss">
@import '@/styles/widgets/nextcloud-shared.scss';
.nextcloud-phpopcache-wrapper {
.oc-enabled {
color: var(--success);
}
.oc-disabled {
color: var(--neutral);
}
.oc-full {
color: var(--danger);
}
}
</style>

View File

@ -18,7 +18,7 @@
<i class="fal fa-browser"></i>
<em v-html="formatNumber(apps.num_installed)"></em>
<strong>{{ tt('applications') }}</strong>
<span v-if="apps.num_updates_available" class="success has-updates">
<span v-if="apps.num_updates_available" class="nc-updates">
<i class="fal fa-download"></i><em>{{ apps.num_updates_available }}</em>
<strong>
{{ tt('updates-available',
@ -192,6 +192,7 @@ export default {
@import '@/styles/widgets/nextcloud-shared.scss';
.nextcloud-stats-wrapper {
div.server-info .nc-updates {
color: var(--success);
margin-left: .5em;
}
}