Skip to content

Commit

Permalink
🐛 fix: 修复 draggable panel resize
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Apr 20, 2024
1 parent 7120cc6 commit aa393f5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/app/chat/VirtualIdol/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ export const useStyles = createStyles(({ css }) => ({
container: css`
display: flex;
flex-direction: column;
flex-grow: 1;
width: 100%;
height: 100%;
`,
Expand Down
3 changes: 1 addition & 2 deletions src/features/ChatInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ const Header = () => {
return (
<DraggablePanel
classNames={{ content: styles.content }}
defaultSize={{ width: 360 }}
minWidth={280}
maxWidth={420}
maxWidth={360}
mode={'fixed'}
placement={'right'}
>
Expand Down
3 changes: 1 addition & 2 deletions src/features/SessionList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const SideBar = () => {
return (
<DraggablePanel
className={styles.content}
defaultSize={{ width: 360 }}
maxWidth={420}
maxWidth={360}
minWidth={280}
mode={'fixed'}
placement={'left'}
Expand Down

0 comments on commit aa393f5

Please sign in to comment.