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