Skip to content

Commit 7a94669

Browse files
committed
fix(dashboard): solve layout squishing and responsive collapsing by making lg breakpoints md and fixing overflow logic
1 parent 1e5b8e7 commit 7a94669

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎apps/web-dashboard/src/components/CollectionCreatorAgent.jsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ export default function CollectionCreatorAgent({ projectId, onInsertAll }) {
214214
};
215215

216216
return (
217-
<div className="flex flex-col lg:flex-row gap-8 h-full w-full font-sans overflow-hidden">
217+
<div className="flex flex-col md:flex-row gap-6 md:gap-8 min-h-[800px] md:min-h-0 md:h-full w-full font-sans overflow-hidden md:overflow-visible">
218218

219219
{/* Open Chat Stream & Pinned Composer - Left */}
220-
<div className="flex flex-col flex-1 h-full min-w-0 overflow-hidden relative">
220+
<div className="flex flex-col flex-1 h-[400px] md:h-full min-w-0 overflow-hidden relative">
221221

222222
{/* Messages Stream (Only this scrolls) */}
223223
<div

‎apps/web-dashboard/src/pages/CreateCollection.jsx‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ function CreateCollection() {
168168

169169
return (
170170
<div
171-
className="w-full flex-1 flex flex-col min-h-0 overflow-hidden box-border p-6 lg:p-8"
171+
className="w-full flex-1 flex flex-col min-h-0 overflow-y-auto overflow-x-hidden box-border p-6 lg:p-8"
172172
>
173173
{/* Top Navigation & Mode Switch Header (Pinned, Non-overlapping) */}
174174
<div
175-
className="flex items-center justify-between pb-3.5 mb-3.5 border-b border-[var(--color-border)] flex-shrink-0 gap-6"
175+
className="flex flex-wrap items-center justify-between pb-3.5 mb-3.5 border-b border-[var(--color-border)] flex-shrink-0 gap-6"
176176
>
177177
<div className="flex items-center gap-3.5">
178178
<button
@@ -202,9 +202,8 @@ function CreateCollection() {
202202
)}
203203
</div>
204204

205-
{/* Main Area */}
206205
{mode === 'manual' ? (
207-
<div className="flex-1 overflow-y-auto custom-scrollbar max-w-4xl mx-auto w-full py-4">
206+
<div className="flex-1 overflow-y-auto custom-scrollbar max-w-6xl mx-auto w-full py-4">
208207
<div className="bg-[var(--color-bg-card)] border border-[var(--color-border)] rounded-xl p-6 shadow-sm">
209208
<div className="form-group mb-6">
210209
<label className="form-label text-xs font-semibold text-[var(--color-text-muted)] uppercase tracking-wider mb-1.5 block">

0 commit comments

Comments
 (0)