Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
enhance: optimize chat list width
Browse files Browse the repository at this point in the history
  • Loading branch information
clement2026 committed Mar 8, 2024
1 parent ae59274 commit 3b3debd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/home/chat-window/prompt/prompt-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const PromptList: React.FC<Props> = ({chatProxy}) => {

let ps: Prompt[]
if (keywords.length === 0) {
// eslint-disable-next-line valtio/state-snapshot-rule
ps = promptState.prompts
} else {
ps = promptState.prompts.filter(p => {
Expand Down
2 changes: 1 addition & 1 deletion src/home/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function Home() {
<>
<div
className="flex h-screen w-screen items-center justify-center gap-2 overflow-hidden p-3 lg:gap-5">
<div className="hidden sm:block h-full min-w-80 max-w-80">
<div className="hidden sm:block h-full min-w-60 max-w-80 w-[35%]">
<Panel/>
</div>
<ChatWindow/>
Expand Down
6 changes: 4 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default {
},
maxWidth: {
'11': '2.75rem',
'60': '20rem',
'40': '10rem',
'60': '15rem',
'80': '20rem',
'86': '22rem',
'96': '24rem',
Expand All @@ -38,7 +39,8 @@ export default {
minWidth: {
'11': '2.75rem',
'12': '3rem',
'60': '20rem',
'40': '10rem',
'60': '15rem',
'80': '20rem',
'86': '22rem',
'96': '24rem',
Expand Down

0 comments on commit 3b3debd

Please sign in to comment.