docs(doc-viewer): update navbar style and icon

This commit is contained in:
Liu
2026-11-08 00:22:44 +08:00
parent 91444c60cd
commit cca280db23
5 changed files with 12 additions and 5 deletions
@@ -3,8 +3,8 @@
flex-direction: row;
align-items: center;
gap: 16px;
height: 56px;
padding: 0 24px;
height: 48px;
padding: 0 16px;
background-color: #fff;
border-bottom: 1px solid #e8e8e8;
}
@@ -40,7 +40,12 @@ export default function Navbar() {
<dropdown-menu $ref="locale_menu">
<dropdown-menu-trigger>
<Button variant="ghost" size="icon" $ref="locale_btn">
<icon name="local-language" />
<Text className="relative left-[3px] text-xs">
文
</Text>
<Text className="relative bottom-[-5px] right-[3px] text-xs">
A
</Text>
</Button>
</dropdown-menu-trigger>
<dropdown-menu-content align="end">
+1 -1
View File
@@ -8,7 +8,7 @@ import DocsSidebar from "../../components/sidebar";
export default function EnDocsLayout({ children }: PropsWithChildren) {
return (
<div className="flex flex-1 min-h-0 h-full">
<div className="flex flex-1 min-h-0 h-full pl-2">
<DocsSidebar locale="en" />
<ScrollArea className="flex-1">
<ScrollAreaContent>{children}</ScrollAreaContent>
@@ -3,7 +3,7 @@ import DocsSidebar from "../../components/sidebar";
export default function ZhCnDocsLayout({ children }: PropsWithChildren) {
return (
<div className="flex flex-1 min-h-0 h-full">
<div className="flex flex-1 min-h-0 h-full pl-2">
<DocsSidebar locale="zh-CN" />
<ScrollArea className="flex-1">
<ScrollAreaContent>{children}</ScrollAreaContent>
+2
View File
@@ -54,6 +54,8 @@ module.exports = {
"opacity",
"whitespace",
"cursor",
"position",
"inset",
"textDecoration",
"textUnderlineOffset",
],