This is an automated email from the ASF dual-hosted git repository.
lauraxia pushed a commit to branch newUI-base-main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/newUI-base-main by this push:
new 886c751f98 format code
886c751f98 is described below
commit 886c751f98f4e57634245f966c560a2a69ee2060
Author: Qian Xia <[email protected]>
AuthorDate: Tue Jan 27 16:45:41 2026 +0800
format code
---
web/web/src/app/rootLayout/MainNav.js | 48 +++++++++++++++++---------------
web/web/src/app/rootLayout/SiteHeader.js | 4 +--
2 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/web/web/src/app/rootLayout/MainNav.js
b/web/web/src/app/rootLayout/MainNav.js
index 3914af0008..8294906669 100644
--- a/web/web/src/app/rootLayout/MainNav.js
+++ b/web/web/src/app/rootLayout/MainNav.js
@@ -160,30 +160,32 @@ export function MainNav() {
</span>
</div>
</Link>
- {pathname !== '/login' && pathname !== '/ui/login' && <ConfigProvider
- theme={{
- components: {
- Menu: {
- horizontalLineHeight: '4rem',
- iconMarginInlineEnd: 8,
- fontSize: 16,
- darkItemSelectedBg: '#334155',
- darkPopupBg: '#2b3748',
- darkItemColor: '#f1f5f9',
- activeBarHeight: 2
+ {pathname !== '/login' && pathname !== '/ui/login' && (
+ <ConfigProvider
+ theme={{
+ components: {
+ Menu: {
+ horizontalLineHeight: '4rem',
+ iconMarginInlineEnd: 8,
+ fontSize: 16,
+ darkItemSelectedBg: '#334155',
+ darkPopupBg: '#2b3748',
+ darkItemColor: '#f1f5f9',
+ activeBarHeight: 2
+ }
}
- }
- }}
- >
- <Menu
- theme={'dark'}
- className='h-full min-w-0 flex-auto items-stretch border-0
bg-slate-800'
- onClick={onClick}
- selectedKeys={[current]}
- mode='horizontal'
- items={NavItems}
- />
- </ConfigProvider>}
+ }}
+ >
+ <Menu
+ theme={'dark'}
+ className='h-full min-w-0 flex-auto items-stretch border-0
bg-slate-800'
+ onClick={onClick}
+ selectedKeys={[current]}
+ mode='horizontal'
+ items={NavItems}
+ />
+ </ConfigProvider>
+ )}
</div>
)
}
diff --git a/web/web/src/app/rootLayout/SiteHeader.js
b/web/web/src/app/rootLayout/SiteHeader.js
index ee862904d1..acf4183406 100644
--- a/web/web/src/app/rootLayout/SiteHeader.js
+++ b/web/web/src/app/rootLayout/SiteHeader.js
@@ -100,9 +100,7 @@ export function SiteHeader() {
}
return (
- <header
- className='sticky top-0 z-40 w-full border-b
border-b-[color:theme(colors.borderWhite)] bg-slate-800 text-white'
- >
+ <header className='sticky top-0 z-40 w-full border-b
border-b-[color:theme(colors.borderWhite)] bg-slate-800 text-white'>
<div className='container flex h-16 items-stretch space-x-4
md:justify-between md:space-x-0'>
<MainNav />
<div className='flex flex-1 items-center justify-end space-x-4'>