Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions packages/frontend/src/components/FileManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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). */}
<div className={PAGE_PADDING}><div className={WIDE_CONTAINER}>
{/* Shared page padding; the listing fills the pane (TABLE_CONTAINER)
rather than the doc-column width (see lib/pageContainer.ts). */}
<div className={PAGE_PADDING}><div className={TABLE_CONTAINER}>
{/* 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
Expand Down
8 changes: 8 additions & 0 deletions packages/frontend/src/lib/pageContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]";
Loading