Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
App-logo outline now hugs the visible icon, not the bounding box — previous attempt put a CSS border + 1px padding on the <img> tag, which left a visible gap because (a) the icon PNGs had 2-6 px of transparent margin around the visible rounded-square and (b) the padding pushed the border another px outward, so the chip looked oversized around a small icon (most obvious on the Settings → About 12×12 placement); two-part fix; (1) trim-cropped icon-180x180.png / icon-192x192.png / icon-512x512.png with ImageMagick (convert -trim +repage -resize <orig> -extent <orig>) so the visible icon now fills the bounding box edge-to-edge — 16x16 / 32x32 / favicon already had no margin so they're untouched; trim verification shows sub-pixel residual on the larger icons which won't be visible at typical display sizes (h-9, h-12); (2) rewrote .app-logo to use box-shadow instead of border+padding — the first shadow layer is a hairline inset-equivalent that gives the outline, the second is the soft drop; box-shadow doesn't change the image's box dimensions so every w-7/h-9/h-12/w-8 utility size keeps the exact same footprint (no shrinkage from box-sizing math), and border-radius: 22% now matches the iOS-style rounded-square corner of the Speakr icon so the outline traces the icon's actual shape rather than cutting across it
Murtaza Nasir9b233c9e21b0
diff --git a/static/css/primitives.css b/static/css/primitives.cssindex 62bcb3b7..ac967ba0 100644--- a/static/css/primitives.css+++ b/static/css/primitives.css@@ -1,21 +1,24 @@/* App logo wrapper — gives the colourful Speakr icon a quiet, theme-- appropriate outline wherever it appears (top-left header, page-header,- inquire header, settings About page, share view). Pattern borrowed from- .speaker-tablet: a hairline border that softens into the surrounding- surface plus a 1-px shadow for separation. Padding is intentionally- tight (1 px) so the existing img sizing classes (w-7 h-7, etc.) keep- producing the right visual footprint — the outline reads as a "chip"- around the icon rather than a frame. */+ appropriate outline that sits FLUSH with the visible icon edge (the+ PNGs are now trim-cropped so there's no transparent margin to fight+ with) wherever the icon appears: top-left header, page-header, inquire+ header, share view, settings About page.++ Uses box-shadow rather than border + padding because:+ - box-shadow doesn't change the image's box dimensions, so every+ existing utility size (w-7 h-7, h-12 w-12, etc.) keeps producing+ the same footprint — no shrinkage from box-sizing math.+ - The two layered shadows give a hairline outline (first shadow)+ PLUS a soft drop (second) without two stacked elements.+ border-radius: 22% matches the iOS-style rounded-square corner of the+ Speakr icon so the outline traces the icon's actual shape rather than+ cutting across it. */.app-logo {- border: 1px solid var(--border-secondary);- border-radius: 6px;- background: var(--bg-secondary);- padding: 1px;- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);- box-sizing: border-box;+ border-radius: 22%;+ box-shadow: 0 0 0 1px var(--border-secondary), 0 1px 2px rgba(0, 0, 0, 0.08);}.dark .app-logo {- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);+ box-shadow: 0 0 0 1px var(--border-secondary), 0 1px 2px rgba(0, 0, 0, 0.3);}/* ============================================================================diff --git a/static/img/icon-180x180.png b/static/img/icon-180x180.pngindex 9db18443..3d286682 100644Binary files a/static/img/icon-180x180.png and b/static/img/icon-180x180.png differdiff --git a/static/img/icon-192x192.png b/static/img/icon-192x192.pngindex 9069af8f..760a2f47 100644Binary files a/static/img/icon-192x192.png and b/static/img/icon-192x192.png differdiff --git a/static/img/icon-512x512.png b/static/img/icon-512x512.pngindex 7def29e9..b18a883d 100644Binary files a/static/img/icon-512x512.png and b/static/img/icon-512x512.png differ