site: menu show tag when front-matter has tag prop (#7053)

pull/7082/head
Konv Suu 2023-11-02 19:00:16 +08:00 committed by GitHub
parent 9bdf882517
commit 242982301d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,7 @@
<span>{{ isZhCN ? n.title : n.enTitle || n.title }}</span> <span>{{ isZhCN ? n.title : n.enTitle || n.title }}</span>
<span v-if="isZhCN" class="chinese">{{ n.subtitle }}</span> <span v-if="isZhCN" class="chinese">{{ n.subtitle }}</span>
</router-link> </router-link>
<a-tag v-if="n.tag" color="green" style="margin-left: auto">{{ n.tag }}</a-tag>
</a-menu-item> </a-menu-item>
</template> </template>
</a-menu-item-group> </a-menu-item-group>

View File

@ -89,6 +89,11 @@ a {
padding-right: 40px !important; padding-right: 40px !important;
padding-left: 16px !important; padding-left: 16px !important;
} }
.ant-menu-title-content {
display: flex;
align-items: center;
}
} }
// Nest Category > Type > Article // Nest Category > Type > Article