Use the Site design logo as the favicon (site and admin) #11

Merged
reudy merged 2 commits from logo-favicon into main 2026-10-26 14:20:07 +01:00
Member

The logo uploaded under Site design → Header is now the tab icon of the public site and of the admin (including the login page). On the public site it is also the home-screen icon on phones. The admin layout now loads the header's logo alongside the colours, and it refreshes after Site design is saved.

  • It uses a 300×300 thumbnail (?thumb=300x300), not the full upload (the evashafik logo is 425 KB). The media file field already has that thumbnail size, so there is no schema change. The new helper thumbUrl() is in packages/shared/src/pb.ts.
  • Without a logo, the bundled icon stays. SVG logos are used as they are, because PocketBase doesn't resize SVGs. No apple-touch-icon is set for the bundled SVG fallback, because iOS ignores SVG icons.

Tested on the local stack: the public page, the admin login, /pages and /globals all link …logo….png?thumb=300x300, and PocketBase returns a 300×300 PNG. svelte-check shows 0 errors.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW

The logo uploaded under *Site design → Header* is now the tab icon of the public site and of the admin (including the login page). On the public site it is also the home-screen icon on phones. The admin layout now loads the header's logo alongside the colours, and it refreshes after Site design is saved. - It uses a 300×300 thumbnail (`?thumb=300x300`), not the full upload (the evashafik logo is 425 KB). The media file field already has that thumbnail size, so there is no schema change. The new helper `thumbUrl()` is in `packages/shared/src/pb.ts`. - Without a logo, the bundled icon stays. SVG logos are used as they are, because PocketBase doesn't resize SVGs. No `apple-touch-icon` is set for the bundled SVG fallback, because iOS ignores SVG icons. Tested on the local stack: the public page, the admin login, `/pages` and `/globals` all link `…logo….png?thumb=300x300`, and PocketBase returns a 300×300 PNG. `svelte-check` shows 0 errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
agent added 1 commit 2026-10-26 14:14:07 +01:00
A 300x300 thumbnail of it (PocketBase's existing media thumb size), also
as the phone home-screen icon. Without a logo the bundled icon stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
agent added 1 commit 2026-10-26 14:17:48 +01:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
agent changed title from Use the Site design logo as the favicon to Use the Site design logo as the favicon (site and admin) 2026-10-26 14:18:49 +01:00
reudy merged commit 4b50067a4a into main 2026-10-26 14:20:07 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/domaino#11
No description provided.