diff --git a/vibn-frontend/components/project/gitea-file-viewer.tsx b/vibn-frontend/components/project/gitea-file-viewer.tsx index 941cc72..7f65905 100644 --- a/vibn-frontend/components/project/gitea-file-viewer.tsx +++ b/vibn-frontend/components/project/gitea-file-viewer.tsx @@ -80,7 +80,7 @@ export function GiteaFileViewer({ projectId, path }: GiteaFileViewerProps) { if (!path) { return ( - + Pick a file from the codebase to preview it here. @@ -89,7 +89,7 @@ export function GiteaFileViewer({ projectId, path }: GiteaFileViewerProps) { if (loading) { return ( - + + {error} @@ -245,22 +245,58 @@ function basename(p: string) { return p.split("/").pop() || p; } -function Centered({ children }: { children: React.ReactNode }) { +function Centered({ + children, + path, +}: { + children: React.ReactNode; + path: string | null; +}) { return (
- {children} +
+
+ {path || "Select a file"} +
+
+
+ {children} +
); }