diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-01 14:05:06 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-01 14:05:06 +0900 |
| commit | a0f794e372848d05068f9154fba9ba781b88c6e9 (patch) | |
| tree | 14aa677543db4c206c70b4eaffacd25ddc7ce8bd /src/client/components/tab.vue | |
| parent | Improve task manager (diff) | |
| download | misskey-a0f794e372848d05068f9154fba9ba781b88c6e9.tar.gz misskey-a0f794e372848d05068f9154fba9ba781b88c6e9.tar.bz2 misskey-a0f794e372848d05068f9154fba9ba781b88c6e9.zip | |
Improve task manager
Diffstat (limited to 'src/client/components/tab.vue')
| -rw-r--r-- | src/client/components/tab.vue | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/client/components/tab.vue b/src/client/components/tab.vue index 84b520966b..7278c74d9a 100644 --- a/src/client/components/tab.vue +++ b/src/client/components/tab.vue @@ -1,6 +1,6 @@ <template> <div class="pxhvhrfw" v-size="{ max: [500] }"> - <button v-for="item in items" class="_button" @click="$emit('update:value', item.value)" :class="{ active: value === item.value }" :key="item.value"><Fa v-if="item.icon" :icon="item.icon" class="icon"/>{{ item.label }}</button> + <button v-for="item in items" class="_button" @click="$emit('update:value', item.value)" :class="{ active: value === item.value }" :disabled="value === item.value" :key="item.value"><Fa v-if="item.icon" :icon="item.icon" class="icon"/>{{ item.label }}</button> </div> </template> @@ -29,11 +29,20 @@ export default defineComponent({ padding: 15px 12px 12px 12px; border-bottom: solid 3px transparent; + &:disabled { + opacity: 1 !important; + cursor: default; + } + &.active { color: var(--accent); border-bottom-color: var(--accent); } + &:not(.active):hover { + color: var(--fgHighlighted); + } + > .icon { margin-right: 6px; } |