docs: new tag logical mergin (#42705)

This commit is contained in:
未觉雨声 2023-05-30 10:31:55 +08:00 committed by GitHub
parent 7b066a9211
commit 10fa725255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ const useMenu = (options: UseMenuOptions = {}): [MenuProps['items'], string] =>
{(item.frontmatter as any).subtitle}
</span>
{(item.frontmatter as any).tag && (
<Tag color="warning" style={{ marginLeft: token.marginXS }}>
<Tag color="warning" style={{ marginInlineStart: token.marginXS }}>
{(item.frontmatter as any).tag}
</Tag>
)}