Skip to content

Commit f5d7e5a

Browse files
chore: cannonical tailwind classes (#23427)
1 parent be15a84 commit f5d7e5a

File tree

69 files changed

+117
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+117
-125
lines changed

web/src/lib/components/admin-settings/SupportedDatetimePanel.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<p>{$t('admin.storage_template_date_time_description')}</p>
2626
<p>{$t('admin.storage_template_date_time_sample', { values: { date: '2022-02-03T20:03:05.250' } })}</p>
2727
</div>
28-
<div class="flex gap-[40px]">
28+
<div class="flex gap-10">
2929
<div>
3030
<p class="uppercase font-medium text-primary">{$t('year')}</p>
3131
<ul>

web/src/lib/components/admin-settings/SupportedVariablesPanel.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</div>
88

99
<div class="p-4 mt-2 text-xs bg-gray-200 rounded-lg dark:bg-gray-700 dark:text-immich-dark-fg">
10-
<div class="flex gap-[50px]">
10+
<div class="flex gap-12">
1111
<div>
1212
<p class="uppercase font-medium text-primary">{$t('filename')}</p>
1313
<ul>

web/src/lib/components/album-page/albums-table-row.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</script>
3333

3434
<tr
35-
class="flex h-[50px] w-full place-items-center border-[3px] border-transparent p-2 text-center even:bg-subtle/20 odd:bg-subtle/80 hover:cursor-pointer hover:border-immich-primary/75 odd:dark:bg-immich-dark-gray/75 even:dark:bg-immich-dark-gray/50 dark:hover:border-immich-dark-primary/75 md:p-5"
35+
class="flex h-12 w-full place-items-center border-3 border-transparent p-2 text-center even:bg-subtle/20 odd:bg-subtle/80 hover:cursor-pointer hover:border-immich-primary/75 odd:dark:bg-immich-dark-gray/75 even:dark:bg-immich-dark-gray/50 dark:hover:border-immich-dark-primary/75 md:p-5"
3636
onclick={() => goto(resolve(`${AppRoute.ALBUMS}/${album.id}`))}
3737
{oncontextmenu}
3838
>

web/src/lib/components/asset-viewer/activity-viewer.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@
141141
<UserAvatar user={reaction.user} size="sm" />
142142
</div>
143143

144-
<div class="w-full leading-4 overflow-hidden self-center break-words text-sm">{reaction.comment}</div>
144+
<div class="w-full leading-4 overflow-hidden self-center wrap-break-word text-sm">{reaction.comment}</div>
145145
{#if assetId === undefined && reaction.assetId}
146146
<a
147-
class="aspect-square w-[75px] h-[75px]"
147+
class="aspect-square w-19 h-19"
148148
href={resolve(`${AppRoute.ALBUMS}/${albumId}/photos/${reaction.assetId}`)}
149149
>
150150
<img
151-
class="rounded-lg w-[75px] h-[75px] object-cover"
151+
class="rounded-lg w-19 h-19 object-cover"
152152
src={getAssetThumbnailUrl(reaction.assetId)}
153153
alt="Profile picture of {reaction.user.name}, who commented on this asset"
154154
/>
@@ -197,11 +197,11 @@
197197
</div>
198198
{#if assetId === undefined && reaction.assetId}
199199
<a
200-
class="aspect-square w-[75px] h-[75px]"
200+
class="aspect-square w-19 h-19"
201201
href={resolve(`${AppRoute.ALBUMS}/${albumId}/photos/${reaction.assetId}`)}
202202
>
203203
<img
204-
class="rounded-lg w-[75px] h-[75px] object-cover"
204+
class="rounded-lg w-19 h-19 object-cover"
205205
src={getAssetThumbnailUrl(reaction.assetId)}
206206
alt="Profile picture of {reaction.user.name}, who liked this asset"
207207
/>

web/src/lib/components/asset-viewer/asset-viewer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@
593593

594594
{#if stackedAsset.id === asset.id}
595595
<div class="w-full flex place-items-center place-content-center">
596-
<div class="w-2 h-2 bg-white rounded-full flex mt-[2px]"></div>
596+
<div class="w-2 h-2 bg-white rounded-full flex mt-0.5"></div>
597597
</div>
598598
{/if}
599599
</div>

web/src/lib/components/asset-viewer/detail-panel-description.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
<section class="px-4 mt-10">
3232
<AutogrowTextarea
3333
content={description}
34-
class="max-h-[500px] w-full border-b border-gray-500 bg-transparent text-base text-black outline-none transition-all focus:border-b-2 focus:border-immich-primary disabled:border-none dark:text-white dark:focus:border-immich-dark-primary immich-scrollbar"
34+
class="max-h-125 w-full border-b border-gray-500 bg-transparent text-base text-black outline-none transition-all focus:border-b-2 focus:border-immich-primary disabled:border-none dark:text-white dark:focus:border-immich-dark-primary immich-scrollbar"
3535
onContentUpdate={handleFocusOut}
3636
placeholder={$t('add_a_description')}
3737
/>
3838
</section>
3939
{:else if description}
4040
<section class="px-4 mt-6">
41-
<p class="break-words whitespace-pre-line w-full text-black dark:text-white text-base">{description}</p>
41+
<p class="wrap-break-word whitespace-pre-line w-full text-black dark:text-white text-base">{description}</p>
4242
</section>
4343
{/if}

web/src/lib/components/asset-viewer/detail-panel.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
{#each people as person, index (person.id)}
200200
{#if showingHiddenPeople || !person.isHidden}
201201
<a
202-
class="w-[90px]"
202+
class="w-22"
203203
href={resolve(
204204
`${AppRoute.PEOPLE}/${person.id}?${QueryParameter.PREVIOUS_ROUTE}=${
205205
currentAlbum?.id ? `${AppRoute.ALBUMS}/${currentAlbum?.id}` : AppRoute.PHOTOS
@@ -439,7 +439,7 @@
439439
</section>
440440

441441
{#if latlng && $featureFlags.loaded && $featureFlags.map}
442-
<div class="h-[360px]">
442+
<div class="h-90">
443443
{#await import('$lib/components/shared-components/map/map.svelte')}
444444
{#await delay(timeToLoadTheMap) then}
445445
<!-- show the loading spinner only if loading the map takes too much time -->
@@ -511,7 +511,7 @@
511511
<div>
512512
<img
513513
alt={album.albumName}
514-
class="h-[50px] w-[50px] rounded object-cover"
514+
class="h-12.5 w-12.5 rounded object-cover"
515515
src={album.albumThumbnailAssetId &&
516516
getAssetThumbnailUrl({ id: album.albumThumbnailAssetId, size: AssetMediaSize.Preview })}
517517
draggable="false"

web/src/lib/components/asset-viewer/download-panel.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
{#if downloadManager.isDownloading}
1717
<div
1818
transition:fly={{ x: -100, duration: 350 }}
19-
class="fixed bottom-10 start-2 max-h-[270px] w-[315px] rounded-2xl border dark:border-white/10 p-4 shadow-lg bg-subtle"
19+
class="fixed bottom-10 start-2 max-h-67.5 w-79 rounded-2xl border dark:border-white/10 p-4 shadow-lg bg-subtle"
2020
>
2121
<Heading size="tiny">{$t('downloading')}</Heading>
22-
<div class="my-2 mb-2 flex max-h-[200px] flex-col overflow-y-auto text-sm">
22+
<div class="my-2 mb-2 flex max-h-50 flex-col overflow-y-auto text-sm">
2323
{#each Object.keys(downloadManager.assets) as downloadKey (downloadKey)}
2424
{@const download = downloadManager.assets[downloadKey]}
2525
<div class="mb-2 flex place-items-center" transition:slide>
@@ -31,10 +31,10 @@
3131
{/if}
3232
</div>
3333
<div class="flex place-items-center gap-2">
34-
<div class="h-[10px] w-full rounded-full bg-neutral-200 dark:bg-neutral-600">
35-
<div class="h-[10px] rounded-full bg-primary" style={`width: ${download.percentage}%`}></div>
34+
<div class="h-2.5 w-full rounded-full bg-neutral-200 dark:bg-neutral-600">
35+
<div class="h-2.5 rounded-full bg-primary" style={`width: ${download.percentage}%`}></div>
3636
</div>
37-
<p class="min-w-[4em] whitespace-nowrap text-right">
37+
<p class="min-w-16 whitespace-nowrap text-right">
3838
<span class="text-primary">
3939
{(download.percentage / 100).toLocaleString($locale, { style: 'percent' })}
4040
</span>

web/src/lib/components/asset-viewer/face-editor/face-editor.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
<Input placeholder={$t('search_people')} bind:value={searchTerm} size="tiny" />
323323
</div>
324324

325-
<div class="h-[250px] overflow-y-auto mt-2">
325+
<div class="h-62.5 overflow-y-auto mt-2">
326326
{#if filteredCandidates.length > 0}
327327
<div class="mt-2 rounded-lg">
328328
{#each filteredCandidates as person (person.id)}

web/src/lib/components/asset-viewer/photo-viewer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
<!-- eslint-disable-next-line svelte/require-each-key -->
258258
{#each getBoundingBox($boundingBoxesArray, $photoZoomState, $photoViewerImgElement) as boundingbox}
259259
<div
260-
class="absolute border-solid border-white border-[3px] rounded-lg"
260+
class="absolute border-solid border-white border-3 rounded-lg"
261261
style="top: {boundingbox.top}px; left: {boundingbox.left}px; height: {boundingbox.height}px; width: {boundingbox.width}px;"
262262
></div>
263263
{/each}

0 commit comments

Comments
 (0)