From b871746b93d61acc97408a944ae0a9b5e5353cdd Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sat, 20 May 2023 21:20:17 -0400 Subject: [PATCH] hide empty tabs --- .../client/src/components/MkNoteDetailed.vue | 40 ++++++++----------- packages/client/src/components/MkTab.vue | 4 ++ 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/packages/client/src/components/MkNoteDetailed.vue b/packages/client/src/components/MkNoteDetailed.vue index cf072d4ac9..a7d657e3fe 100644 --- a/packages/client/src/components/MkNoteDetailed.vue +++ b/packages/client/src/components/MkNoteDetailed.vue @@ -34,39 +34,29 @@ > - - - - - + @@ -518,6 +508,10 @@ onUnmounted(() => { overflow: clip; outline: none; scroll-margin-top: calc(var(--stickyTop) + 20vh); + &:not(:last-child) { + border-bottom: 1px solid var(--divider); + margin-bottom: 4px; + } .article { cursor: unset; padding-bottom: 0; diff --git a/packages/client/src/components/MkTab.vue b/packages/client/src/components/MkTab.vue index 29c9435476..76887a2479 100644 --- a/packages/client/src/components/MkTab.vue +++ b/packages/client/src/components/MkTab.vue @@ -86,6 +86,10 @@ export default defineComponent({ > .icon { margin-right: 6px; } + + &:empty { + display: none !important; + } } &.chips, &.underline {