diff --git a/components/utilities/files/FileBrowserPanel.tsx b/components/utilities/files/FileBrowserPanel.tsx
index dbe39eb0..11bcbce2 100644
--- a/components/utilities/files/FileBrowserPanel.tsx
+++ b/components/utilities/files/FileBrowserPanel.tsx
@@ -33,7 +33,6 @@ function formatSize(bytes?: number) {
function formatDate(ms?: number) {
if (!ms) return "—";
const d = new Date(ms);
- // date only, short & compact
return d.toLocaleDateString(undefined, { year: "numeric", month: "numeric", day: "numeric" });
}
@@ -48,6 +47,7 @@ export default function FileBrowserPanel() {
const p = encodeURIComponent(path || "/");
return `${BASE}/api/files/list?path=${p}`;
}, [path]);
+
const urlDownload = useCallback((p: string) => {
const qp = encodeURIComponent(p || "/");
return `${BASE}/api/files/download?path=${qp}`;
@@ -62,7 +62,7 @@ export default function FileBrowserPanel() {
setError(null);
setPreviewHref(null);
try {
- const res = await fetch(urlList, { method: "GET", credentials: "include", headers: { Accept: "application/json" }, cache: "no-store" });
+ const res = await fetch(urlList, { headers: { Accept: "application/json" }, cache: "no-store" });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const json: ListResponse = await res.json();
const arr = (json as any).items || (json as any).entries || [];
@@ -93,10 +93,24 @@ export default function FileBrowserPanel() {
return (
- {/* keep typography consistent */}
+ {/* compact, consistent type + strict columns */}
{/* Toolbar */}
@@ -116,25 +130,19 @@ export default function FileBrowserPanel() {
{path || "/"}
- {/* Two-column layout: left auto, right fixed min (no horizontal scroll in left) */}
-
- {/* LEFT: table (no horizontal scrolling; columns sized to fit) */}
+ {/* Layout: left flex, right fixed min; no horizontal scroll on left */}
+
+ {/* LEFT: Table */}
{/* Header */}
-
-
Name
+
+
Name
Type
Size
Date
-
Actions
+
Act
- {/* Rows */}
{loading ? (
@@ -146,11 +154,10 @@ export default function FileBrowserPanel() {
Empty folder.
) : (
items.map((it) => (
-
- {/* Name (truncate, tooltipped) */}
+
+ {/* Name */}
- {/* RIGHT: preview (fixed min width; grows with viewport) */}
+ {/* RIGHT: Preview */}