mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-12-26 17:55:58 +08:00
chore: update default theme style
This commit is contained in:
@@ -116,14 +116,24 @@ const Header = () => {
|
|||||||
navigate(button.to);
|
navigate(button.to);
|
||||||
setShowSidebar(false);
|
setShowSidebar(false);
|
||||||
}}
|
}}
|
||||||
|
style={{ fontSize: '15px' }}
|
||||||
>
|
>
|
||||||
{button.name}
|
{button.name}
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Menu.Item key={button.name} as={Link} to={button.to}>
|
<Menu.Item
|
||||||
<Icon name={button.icon} />
|
key={button.name}
|
||||||
|
as={Link}
|
||||||
|
to={button.to}
|
||||||
|
style={{
|
||||||
|
fontSize: '15px',
|
||||||
|
fontWeight: '400',
|
||||||
|
color: '#666',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Icon name={button.icon} style={{ marginRight: '4px' }} />
|
||||||
{button.name}
|
{button.name}
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
);
|
);
|
||||||
@@ -211,8 +221,14 @@ const Header = () => {
|
|||||||
<Container>
|
<Container>
|
||||||
<Menu.Item as={Link} to='/' className={'hide-on-mobile'}>
|
<Menu.Item as={Link} to='/' className={'hide-on-mobile'}>
|
||||||
<img src={logo} alt='logo' style={{ marginRight: '0.75em' }} />
|
<img src={logo} alt='logo' style={{ marginRight: '0.75em' }} />
|
||||||
<div style={{ fontSize: '20px' }}>
|
<div
|
||||||
<b>{systemName}</b>
|
style={{
|
||||||
|
fontSize: '18px',
|
||||||
|
fontWeight: '500',
|
||||||
|
color: '#333',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{systemName}
|
||||||
</div>
|
</div>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
{renderButtons(false)}
|
{renderButtons(false)}
|
||||||
@@ -222,9 +238,22 @@ const Header = () => {
|
|||||||
text={userState.user.username}
|
text={userState.user.username}
|
||||||
pointing
|
pointing
|
||||||
className='link item'
|
className='link item'
|
||||||
|
style={{
|
||||||
|
fontSize: '15px',
|
||||||
|
fontWeight: '400',
|
||||||
|
color: '#666',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Dropdown.Menu>
|
<Dropdown.Menu>
|
||||||
<Dropdown.Item onClick={logout}>注销</Dropdown.Item>
|
<Dropdown.Item
|
||||||
|
onClick={logout}
|
||||||
|
style={{
|
||||||
|
fontSize: '15px',
|
||||||
|
fontWeight: '400',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
注销
|
||||||
|
</Dropdown.Item>
|
||||||
</Dropdown.Menu>
|
</Dropdown.Menu>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
) : (
|
) : (
|
||||||
@@ -233,6 +262,11 @@ const Header = () => {
|
|||||||
as={Link}
|
as={Link}
|
||||||
to='/login'
|
to='/login'
|
||||||
className='btn btn-link'
|
className='btn btn-link'
|
||||||
|
style={{
|
||||||
|
fontSize: '15px',
|
||||||
|
fontWeight: '400',
|
||||||
|
color: '#666',
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Menu.Menu>
|
</Menu.Menu>
|
||||||
|
|||||||
Reference in New Issue
Block a user