summaryrefslogtreecommitdiff
path: root/src/components/Global/PageTitle.vue
diff options
context:
space:
mode:
authorMaksim Zakharov <m.zakharov@IBS.RU>2022-05-24 09:43:34 +0300
committerMaksim Zakharov <m.zakharov@IBS.RU>2022-05-24 09:43:34 +0300
commit6facd12596ec8b55bab4be04b473de65e1f22018 (patch)
tree9e82b684a4945431b9d798e2e52293477212ec51 /src/components/Global/PageTitle.vue
parent5c7a1dd3d6a22e02b983a01be39b654b8eaa6ad1 (diff)
downloadwebui-vue-6facd12596ec8b55bab4be04b473de65e1f22018.tar.xz
Add depend: highcarts. Pages: power, analytical motherboard, memory, fans, event logs, Fix styles, add global components.
Diffstat (limited to 'src/components/Global/PageTitle.vue')
-rw-r--r--src/components/Global/PageTitle.vue13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/components/Global/PageTitle.vue b/src/components/Global/PageTitle.vue
index 12dde551..20bc8050 100644
--- a/src/components/Global/PageTitle.vue
+++ b/src/components/Global/PageTitle.vue
@@ -1,7 +1,11 @@
<template>
- <div class="page-title">
+ <div v-if="description" class="page-title">
<h1 class="bold-24px text-title">{{ title }}</h1>
- <p v-if="description" class="page-description">{{ description }}</p>
+ <p class="page-description">{{ description }}</p>
+ </div>
+ <div v-else class="page-title no_description">
+ <h1 class="bold-24px text-title">{{ title }}</h1>
+ <p class="page-description">{{ description }}</p>
</div>
</template>
@@ -29,6 +33,9 @@ export default {
flex-flow: column nowrap;
align-items: flex-start;
justify-content: center;
+ &.no_description {
+ height: 64px;
+ }
}
.text-title {
@@ -37,7 +44,7 @@ export default {
.page-description {
color: $text-secondary;
- font-family: Inter;
+ font-family: 'Inter', sans-serif;
font-size: 12px;
font-weight: 400;
line-height: 16px;