diff --git a/packages/frontend/src/components/FileManager.tsx b/packages/frontend/src/components/FileManager.tsx index 05467a8..01ef66b 100644 --- a/packages/frontend/src/components/FileManager.tsx +++ b/packages/frontend/src/components/FileManager.tsx @@ -3,7 +3,7 @@ import { createPortal } from "react-dom"; import { useNavigate, useOutletContext } from "react-router-dom"; import type { DocsLayoutContext } from "@/layouts/DocsLayout"; import { notifySiteTreeChanged } from "@/components/SidebarPageTree"; -import { PAGE_PADDING, WIDE_CONTAINER } from "@/lib/pageContainer"; +import { PAGE_PADDING, TABLE_CONTAINER } from "@/lib/pageContainer"; import { Folder, FileText, FilePlus, House, FolderPlus, Search, X, Download, Upload, Trash2, Pencil, Link, Sparkles, PenTool, MoreHorizontal, FolderInput, Code, RefreshCw, SquareCheck, ChevronDown, Check, Minus } from "lucide-react"; import { Checkbox as CheckboxPrimitive } from "radix-ui"; import { Button } from "@/components/ui/button"; @@ -1686,9 +1686,9 @@ export function FileManager({ projectId, projectName, folderId, myRole, aiEnable isDesktop - so role/name lookups stay unique. */} {createInHeader && createPortal(createSplitButton, headerActionSlot!)} - {/* Shared page container: same left edge and width as the dashboard - and other wide pages (see lib/pageContainer.ts). */} -
+ {/* Shared page padding; the listing fills the pane (TABLE_CONTAINER) + rather than the doc-column width (see lib/pageContainer.ts). */} +
{/* Toolbar - search fills the row (bulk Delete joins it on the right while a selection is active). Below md the actions drop to their own full-width row under the search, with the create split button diff --git a/packages/frontend/src/lib/pageContainer.ts b/packages/frontend/src/lib/pageContainer.ts index 187da1d..b1ebab5 100644 --- a/packages/frontend/src/lib/pageContainer.ts +++ b/packages/frontend/src/lib/pageContainer.ts @@ -31,3 +31,11 @@ export const READING_CONTAINER = `mx-auto max-w-[44rem] ${DOC_COLUMN_LEFT}`; /** Wide index pages (59rem / 944px - equal 120px margins at 1440): dashboard, wide file previews. */ export const WIDE_CONTAINER = `mx-auto max-w-[59rem] ${DOC_COLUMN_LEFT}`; + +/** + * Data tables (the file manager): fill the padded pane instead of aligning to + * the doc column, since a listing's flexible Name column benefits from every + * pixel. Capped at 120rem (1920px) and centred so an ultrawide monitor doesn't + * stretch rows until the trailing columns sit a screen away from the names. + */ +export const TABLE_CONTAINER = "mx-auto max-w-[120rem]";