diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-14 18:51:15 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-10-14 18:51:15 +0900 |
| commit | 955b3e313bbf311dd565d96bc04545c9be96e6bb (patch) | |
| tree | 498314f3b8ad768181d5664ba559be00090d989f /src/client/components/global | |
| parent | :art: (diff) | |
| download | sharkey-955b3e313bbf311dd565d96bc04545c9be96e6bb.tar.gz sharkey-955b3e313bbf311dd565d96bc04545c9be96e6bb.tar.bz2 sharkey-955b3e313bbf311dd565d96bc04545c9be96e6bb.zip | |
:art:
Diffstat (limited to 'src/client/components/global')
| -rw-r--r-- | src/client/components/global/header.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/components/global/header.vue b/src/client/components/global/header.vue index 176a1b47ea..a283e1656c 100644 --- a/src/client/components/global/header.vue +++ b/src/client/components/global/header.vue @@ -1,5 +1,5 @@ <template> -<div class="fdidabkb" :class="{ slim: narrow, thin }" :style="{ background: bg }" @click="onClick" ref="el"> +<div class="fdidabkb" :class="{ slim: narrow, thin: thin_ }" :style="{ background: bg }" @click="onClick" ref="el"> <template v-if="info"> <div class="titleContainer" @click="showTabsPopup"> <i v-if="info.icon" class="icon" :class="info.icon"></i> @@ -37,7 +37,7 @@ </template> <script lang="ts"> -import { computed, defineComponent, onMounted, onUnmounted, PropType, ref } from 'vue'; +import { computed, defineComponent, onMounted, onUnmounted, PropType, ref, inject } from 'vue'; import * as tinycolor from 'tinycolor2'; import { popupMenu } from '@client/os'; import { url } from '@client/config'; @@ -182,6 +182,7 @@ export default defineComponent({ showTabsPopup, preventDrag, onClick, + thin_: props.thin || inject('shouldHeaderThin', false) }; }, }); |