feat(events): show every photo on the event page without folders
CI / build (push) Has been cancelled
CI / build (push) Has been cancelled
Folders were an implementation detail leaking into the event workflow: every upload needed a folder first and photos were split across pages. Uploads now land in a single implicit "Photos" folder and the event page renders one gallery with the uploader and an edited-only download. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -235,8 +235,8 @@ export default async function MediaPage() {
|
||||
Photos
|
||||
</h2>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
Every photo in the event folders you can open. Download originals
|
||||
from the event folder.
|
||||
Every photo in the events you can open. Download originals from
|
||||
the event page.
|
||||
</p>
|
||||
</div>
|
||||
<span className="text-xs text-muted-foreground">
|
||||
@@ -264,7 +264,7 @@ export default async function MediaPage() {
|
||||
return (
|
||||
<Link
|
||||
key={photo.id}
|
||||
href={`/events/${photo.eventId}/folders/${photo.folderId}`}
|
||||
href={`/events/${photo.eventId}`}
|
||||
className="group overflow-hidden rounded-md border border-border bg-background transition-colors hover:border-primary/60"
|
||||
>
|
||||
<div className="flex aspect-square items-center justify-center bg-muted/40">
|
||||
@@ -292,7 +292,7 @@ export default async function MediaPage() {
|
||||
{photo.filename}
|
||||
</p>
|
||||
<p className="truncate text-[11px] text-muted-foreground">
|
||||
{photo.eventTitle} · {photo.folderName}
|
||||
{photo.eventTitle}
|
||||
</p>
|
||||
<p className="text-[10px] text-muted-foreground">
|
||||
{bytesLabel(photo.sizeBytes)}
|
||||
|
||||
Reference in New Issue
Block a user