mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
docs(doc-viewer): update navbar style and icon
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -54,6 +54,8 @@ module.exports = {
|
||||
"opacity",
|
||||
"whitespace",
|
||||
"cursor",
|
||||
"position",
|
||||
"inset",
|
||||
"textDecoration",
|
||||
"textUnderlineOffset",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user