mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
parent
773d093ace
commit
234a95960b
3 changed files with 23 additions and 14 deletions
|
@ -159,9 +159,13 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<!-- ALBUM DESCRIPTION -->
|
<!-- ALBUM DESCRIPTION -->
|
||||||
<p class="mb-12 mt-6 w-full pb-2 text-left text-lg font-medium dark:text-gray-300">
|
{#if album.description}
|
||||||
{album.description}
|
<p
|
||||||
</p>
|
class="whitespace-pre-line mb-12 mt-6 w-full pb-2 text-left font-medium text-base text-black dark:text-gray-300"
|
||||||
|
>
|
||||||
|
{album.description}
|
||||||
|
</p>
|
||||||
|
{/if}
|
||||||
</section>
|
</section>
|
||||||
</AssetGrid>
|
</AssetGrid>
|
||||||
<UpdatePanel {assetStore} />
|
<UpdatePanel {assetStore} />
|
||||||
|
|
|
@ -214,7 +214,7 @@
|
||||||
</section>
|
</section>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if isOwner || description !== ''}
|
{#if isOwner}
|
||||||
<section class="px-4 mt-10">
|
<section class="px-4 mt-10">
|
||||||
{#key asset.id}
|
{#key asset.id}
|
||||||
<textarea
|
<textarea
|
||||||
|
@ -233,6 +233,8 @@
|
||||||
/>
|
/>
|
||||||
{/key}
|
{/key}
|
||||||
</section>
|
</section>
|
||||||
|
{:else if description}
|
||||||
|
<p class="break-words whitespace-pre-line w-full text-black dark:text-white text-base">{description}</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if !api.isSharedLink && people.length > 0}
|
{#if !api.isSharedLink && people.length > 0}
|
||||||
|
|
|
@ -653,16 +653,19 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<!-- ALBUM DESCRIPTION -->
|
<!-- ALBUM DESCRIPTION -->
|
||||||
<textarea
|
{#if isOwned}
|
||||||
class="w-full resize-none overflow-hidden text-black dark:text-white border-b-2 border-transparent border-gray-500 bg-transparent text-base outline-none transition-all focus:border-b-2 focus:border-immich-primary disabled:border-none dark:focus:border-immich-dark-primary hover:border-gray-400"
|
<textarea
|
||||||
bind:this={textArea}
|
class="w-full resize-none overflow-hidden text-black dark:text-white border-b-2 border-transparent border-gray-500 bg-transparent text-base outline-none transition-all focus:border-b-2 focus:border-immich-primary disabled:border-none dark:focus:border-immich-dark-primary hover:border-gray-400"
|
||||||
bind:value={description}
|
bind:this={textArea}
|
||||||
disabled={!isOwned}
|
bind:value={description}
|
||||||
on:input={() => autoGrowHeight(textArea)}
|
on:input={() => autoGrowHeight(textArea)}
|
||||||
on:focusout={handleUpdateDescription}
|
on:focusout={handleUpdateDescription}
|
||||||
use:autoGrowHeight
|
use:autoGrowHeight
|
||||||
placeholder="Add description"
|
placeholder="Add description"
|
||||||
/>
|
/>
|
||||||
|
{:else if description}
|
||||||
|
<p class="break-words whitespace-pre-line w-full text-black dark:text-white text-base">{description}</p>
|
||||||
|
{/if}
|
||||||
</section>
|
</section>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue