Skip to content

Commit 2b8661a

Browse files
committed
Tweak gap size for large chat layout
1 parent ec67f83 commit 2b8661a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/pages/MultiBotChatPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ const GeneralChatPanel: FC<{
9494
<div className="flex flex-col overflow-hidden h-full">
9595
<div
9696
className={cx(
97-
'grid overflow-hidden grow auto-rows-fr gap-3 mb-3',
97+
'grid overflow-hidden grow auto-rows-fr',
9898
chats.length % 3 === 0 ? 'grid-cols-3' : 'grid-cols-2',
99+
chats.length > 3 ? 'gap-2 mb-2' : 'gap-3 mb-3',
99100
)}
100101
>
101102
{chats.map((chat, index) => (

0 commit comments

Comments
 (0)