Skip to content

Open source CapCut alternative.

TypeScript

refactor(site): drop projects/library header and empty-state labels

David Le4e2042f7d3f2
diff --git a/site/src/cut/components/LibraryView.tsx b/site/src/cut/components/LibraryView.tsx
index d6294a06..86787b59 100644
--- a/site/src/cut/components/LibraryView.tsx
+++ b/site/src/cut/components/LibraryView.tsx
@@ -166,12 +166,7 @@ export function LibraryView() {
return (
<div className="mx-auto w-full max-w-6xl px-10 py-9">
<div className="mb-5 flex items-center justify-between gap-4">
- <div>
- <h1 className="text-lg font-semibold tracking-tight">Library</h1>
- <p className="mt-0.5 text-sm text-muted-foreground">
- Clips and music you can drop into any project.
- </p>
- </div>
+ <h1 className="text-lg font-semibold tracking-tight">Library</h1>
<Button onClick={() => { setUrlError(null); setAddOpen(true); }}>
<Upload data-icon="inline-start" /> Add media
</Button>
@@ -254,11 +249,7 @@ export function LibraryView() {
</p>
</div>
</button>
- ) : shown.length === 0 && uploading === 0 ? (
- <div className="grid place-items-center py-16 text-center text-sm text-muted-foreground">
- {openFolder === null ? "No media yet." : "Empty folder."}
- </div>
- ) : (
+ ) : shown.length === 0 && uploading === 0 ? null : (
<Marquee
className="grid min-h-[40vh] grid-cols-[repeat(auto-fill,minmax(160px,1fr))] content-start gap-4"
selected={selected}
diff --git a/site/src/cut/components/ProjectsHome.tsx b/site/src/cut/components/ProjectsHome.tsx
index a7595b31..3be2b826 100644
--- a/site/src/cut/components/ProjectsHome.tsx
+++ b/site/src/cut/components/ProjectsHome.tsx
@@ -254,7 +254,7 @@ export function ProjectsHome() {
{!engineDown && projects && hasContent && (
<div className="mb-5 flex items-center justify-between">
{openFolder === null ? (
- <h1 className="text-lg font-semibold tracking-tight">Recent videos</h1>
+ <div />
) : (
<FolderCrumb
root="Projects"
@@ -367,11 +367,7 @@ export function ProjectsHome() {
</Button>
</div>
</div>
- ) : shown.length === 0 ? (
- <div className="grid place-items-center py-16 text-center text-sm text-muted-foreground">
- {openFolder === null ? "No projects yet." : "Empty folder."}
- </div>
- ) : view === "gallery" ? (
+ ) : shown.length === 0 ? null : view === "gallery" ? (
<Marquee
className="grid min-h-[42vh] grid-cols-[repeat(auto-fill,minmax(190px,1fr))] content-start gap-5"
selected={selected}