Skip to content

Open source CapCut alternative.

TypeScript

fix(site): card name pills overlay at the top; project size line restored

David Lef68c4b6aa70d
diff --git a/site/src/cut/components/LibraryView.tsx b/site/src/cut/components/LibraryView.tsx
index 9f0d7b5f..e46f01d0 100644
--- a/site/src/cut/components/LibraryView.tsx
+++ b/site/src/cut/components/LibraryView.tsx
@@ -448,7 +448,7 @@ export function LibraryCard({
<button
aria-label="Add to timeline"
title="Add to timeline"
- className="absolute top-1.5 left-1.5 grid size-6 place-items-center rounded-full bg-primary text-primary-foreground opacity-0 shadow transition-all group-hover:opacity-100 hover:scale-110"
+ className="absolute bottom-1.5 left-1.5 grid size-6 place-items-center rounded-full bg-primary text-primary-foreground opacity-0 shadow transition-all group-hover:opacity-100 hover:scale-110"
onClick={(e) => {
e.stopPropagation();
onUse();
@@ -503,7 +503,7 @@ export function LibraryCard({
</div>
<CopyNameLabel
name={a.name}
- className="absolute bottom-1.5 left-1.5 max-w-[70%] rounded-lg bg-black/55 px-2 py-1 text-[11px] font-medium text-white backdrop-blur-sm"
+ className="absolute top-1.5 left-1.5 max-w-[70%] rounded-lg bg-black/55 px-2 py-1 text-[11px] font-medium text-white backdrop-blur-sm"
/>
</div>
</div>
diff --git a/site/src/cut/components/ProjectsHome.tsx b/site/src/cut/components/ProjectsHome.tsx
index c1842de2..6e7fc8f0 100644
--- a/site/src/cut/components/ProjectsHome.tsx
+++ b/site/src/cut/components/ProjectsHome.tsx
@@ -502,7 +502,7 @@ export function ProjectsHome() {
)}
>
<CardPreview project={p} />
- <span className="absolute bottom-2 left-2 max-w-[70%] truncate rounded-lg bg-black/55 px-2 py-1 text-[11px] font-medium text-white backdrop-blur-sm">
+ <span className="absolute top-2 left-2 max-w-[70%] truncate rounded-lg bg-black/55 px-2 py-1 text-[11px] font-medium text-white backdrop-blur-sm">
{p.name}
</span>
<span className="absolute right-2 bottom-2 rounded-md bg-black/65 px-1.5 py-0.5 font-mono text-[10px] text-white tabular-nums">
@@ -521,6 +521,9 @@ export function ProjectsHome() {
onDelete={() => setDeleting(p)}
/>
</div>
+ <div className="mt-2 px-0.5 text-xs text-muted-foreground">
+ {formatBytes(p.sizeBytes ?? 0)} · edited {formatDate(p.updatedAt)}
+ </div>
</div>
))}
</Marquee>