Skip to content

Commit

Permalink
refactor: set logo header fit into drawer width
Browse files Browse the repository at this point in the history
  • Loading branch information
lizable committed Aug 30, 2024
1 parent f8afbf7 commit d7694f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/src/components/BAISider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Flex from './Flex';
import { DRAWER_WIDTH } from './WEBUINotificationDrawer';
import { ConfigProvider, Grid, SiderProps, Typography, theme } from 'antd';
import Sider from 'antd/es/layout/Sider';
import _ from 'lodash';
Expand Down Expand Up @@ -56,7 +57,7 @@ const BAISider: React.FC<BAISiderProps> = ({
`}
</style>
<Sider
width={220}
width={DRAWER_WIDTH}
breakpoint="md"
style={{
overflowX: 'hidden',
Expand Down
2 changes: 2 additions & 0 deletions react/src/components/MainLayout/WebUIHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Flex, { FlexProps } from '../Flex';
import ProjectSelect from '../ProjectSelect';
import UserDropdownMenu from '../UserDropdownMenu';
import WEBUIHelpButton from '../WEBUIHelpButton';
import { DRAWER_WIDTH } from '../WEBUINotificationDrawer';
import WebUIThemeToggleButton from '../WebUIThemeToggleButton';
// @ts-ignore
import rawCss from './WebUIHeader.css?raw';
Expand Down Expand Up @@ -79,6 +80,7 @@ const WebUIHeader: React.FC<WebUIHeaderProps> = ({
<Flex align="center" justify="start" direction="row" gap={'lg'}>
<div
style={{
width: DRAWER_WIDTH,
paddingTop: 18,
paddingBottom: 18,
paddingRight: 30,
Expand Down

0 comments on commit d7694f1

Please sign in to comment.