From 41f54a292bb3b4c60cfb4ed9d1fda8b2b5521eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Sun, 30 Aug 2026 23:00:14 +0100 Subject: [PATCH] the constraint goes on the grid child, not inside it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous fix put `min-w-0` on the scroll container, which was one level too low to stop anything. DialogContent is a grid; the element that expands is its DIRECT child, and between the two sat a `flex flex-col gap-3` wrapper with no constraint at all. It grew to fit the title and took the card out of the dialog with it, exactly as before. Found by mapping the element chain from DialogContent down rather than reasoning about which element "should" be the one — the wrapper does not appear in any of the code you read while thinking about the card, which is why two attempts missed it. Also confirmed the previous fix was genuinely live before blaming it: the served chunk on fofos carried the new class and not the old one. The code was right and the diagnosis was wrong. Co-Authored-By: Claude Opus 5 (1M context) --- .../FileBrowserApp/components/VideoDownloadDialog.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/components/VideoDownloadDialog.tsx b/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/components/VideoDownloadDialog.tsx index 11741802..b75b2953 100644 --- a/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/components/VideoDownloadDialog.tsx +++ b/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/components/VideoDownloadDialog.tsx @@ -213,7 +213,11 @@ export const VideoDownloadDialog = ({ fileBrowserManager }: VideoDownloadDialogP ) : ( -
+ // `min-w-0` on the DIRECT grid child. DialogContent is a grid, and a grid item defaults to + // `min-width: auto` — so this is the element that grows to fit a long title and takes the + // card out of the dialog with it. The constraint has to be here; on the scroll container + // inside it was one level too low to stop anything. +