diff --git a/docs/media-uploads.md b/docs/media-uploads.md index 6e3bfdb..99ad77c 100644 --- a/docs/media-uploads.md +++ b/docs/media-uploads.md @@ -15,6 +15,14 @@ in the `media` table (`server/src/migrations/028_media.sql`). - **Keep original** stores the file exactly as uploaded (up to 10 MB), metadata and all. - SVGs are always kept as they are. +- A photo field with a shape (people, event photos and card + backgrounds, blog covers, hero photos, link card pictures, block + images and schedule graphics; not logos) opens **Frame the photo** + before uploading a JPEG, PNG or WebP: drag and zoom it inside the + field's shape, or pick another (As uploaded keeps the photo's own). + The framed part is what's uploaded; nothing about the framing is + saved, so framing again means uploading again. Upload as is skips + it. A field's shape is its `crop` option (`src/components/admin/fields.tsx`). - Accepted types: JPEG, PNG, GIF, WebP, SVG, and WebVTT captions (`.vtt`, kept as they are, always in `captions/`). The type is read from the file's contents, not its name: a captions file has to start diff --git a/src/components/OrgLogo.tsx b/src/components/OrgLogo.tsx index 714dd2e..1632662 100644 --- a/src/components/OrgLogo.tsx +++ b/src/components/OrgLogo.tsx @@ -16,10 +16,13 @@ export default function OrgLogo({ org, color, size = 'h-14 w-14', + fallbackSize = size, }: { org: { logo?: string | null; name: string } color: string size?: string + /** The initials square's size, when the logo's box isn't square. */ + fallbackSize?: string }) { return (