Commit 726883ab4b
726883ab4b5645bdc6a2eb89fb9cc5c4b90aaa2a
parent: ff531f2549
Unsigned
Alicia Sykes <alicia@omg.lol> · 2026-08-09 08:04 UTC
Use object-fit: contain, so icons don't get squashed if not square
Layout: unified · split
web/src/components/things/Search.svelte
+1
| @@ -231,6 +231,7 @@ |
| 231 | 231 | border-radius: var(--curve-md); |
| 232 | 232 | width: 1.25rem; |
| 233 | 233 | height: 1.25rem; |
| 234 | object-fit: contain; |
| 234 | 235 | font-size: 10px; |
| 235 | 236 | color: var(--accent-text); |
| 236 | 237 | overflow: hidden; |
web/src/components/things/ServiceIcon.astro
+1
| @@ -104,6 +104,7 @@ const iconSize = Math.round(size * 0.45); |
| 104 | 104 | .service-icon { |
| 105 | 105 | position: absolute; |
| 106 | 106 | inset: 0; |
| 107 | object-fit: contain; |
| 107 | 108 | border-radius: var(--curve-sm); |
| 108 | 109 | font-size: 0; |
| 109 | 110 | } |
web/src/components/things/SmartSuggestions.svelte
+1
| @@ -129,6 +129,7 @@ |
| 129 | 129 | .service-icon { |
| 130 | 130 | width: 2.5rem; |
| 131 | 131 | height: 2.5rem; |
| 132 | object-fit: contain; |
| 132 | 133 | border-radius: var(--curve-sm); |
| 133 | 134 | |
| 134 | 135 | font-size: 10px; |
web/src/components/things/service-card.scss
+3
| @@ -42,6 +42,9 @@ |
| 42 | 42 | display: flex; |
| 43 | 43 | align-items: center; |
| 44 | 44 | gap: var(--space-sm); |
| 45 | .service-icon { |
| 46 | object-fit: contain; |
| 47 | } |
| 45 | 48 | :global(p) { |
| 46 | 49 | @include line-clamp(3); |
| 47 | 50 | margin: var(--space-sm) 0; |
web/src/pages/inventory/[...inventoryId].astro
+2 −2
| @@ -28,7 +28,7 @@ if (serviceList.error) { |
| 28 | 28 | |
| 29 | 29 | <Layout title={`${makeTitle(inventoryId)} | Awesome Privacy`}> |
| 30 | 30 | <main> |
| 31 | | <h2>{makeTitle(inventoryId)}</h2> |
| 31 | <h1>{makeTitle(inventoryId)}</h1> |
| 32 | 32 | { |
| 33 | 33 | cheekyLilError && ( |
| 34 | 34 | <div class="error"> |
| @@ -65,7 +65,7 @@ if (serviceList.error) { |
| 65 | 65 | flex-direction: column; |
| 66 | 66 | min-height: calc(100vh - 12rem); |
| 67 | 67 | font-size: var(--text-md); |
| 68 | | h2 { |
| 68 | h1 { |
| 69 | 69 | font-family: var(--font-subtitle); |
| 70 | 70 | font-weight: bold; |
| 71 | 71 | font-size: var(--text-4xl); |