Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/desktop/src/renderer/components/Insights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export function Insights({ projectId }: InsightsProps) {
)}

{/* Main Chat Area */}
<div className="flex flex-1 flex-col">
<div className="flex flex-1 flex-col min-h-0">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While adding min-h-0 correctly addresses the vertical expansion issue, it is recommended to also add overflow-hidden and min-w-0 to this container for better layout robustness.\n\n- overflow-hidden ensures that any content that might exceed the container's bounds is clipped, preventing unwanted scrollbars on the main window.\n- min-w-0 prevents the container from expanding horizontally if it contains long, non-wrapping content (like code blocks), which is important since this container is a flex item in a horizontal layout (the parent div at line 387 is flex-row).

Suggested change
<div className="flex flex-1 flex-col min-h-0">
<div className="flex flex-1 flex-col min-h-0 min-w-0 overflow-hidden">

{/* Header */}
<div className="flex items-center justify-between border-b border-border px-6 py-4">
<div className="flex items-center gap-3">
Expand Down