fix(web): small issues everywhere (#7207)

* multiple fix

* fix: album re-render

* fix: revert re-render album

* fix: linter

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
martin
2024-02-21 14:29:22 +01:00
committed by GitHub
parent 855aa8e30a
commit 8f57bfb496
6 changed files with 25 additions and 46 deletions
@@ -83,8 +83,6 @@
let album = data.album;
let description = album.description;
$: album = data.album;
$: {
if (!album.isActivityEnabled && $numberOfComments === 0) {
isShowActivity = false;
@@ -452,7 +450,10 @@
description,
},
});
notificationController.show({
type: NotificationType.Info,
message: 'Album description has been updated',
});
album.description = description;
} catch (error) {
handleError(error, 'Error updating album description');
@@ -672,7 +673,9 @@
placeholder="Add description"
/>
{:else if description}
<p class="break-words whitespace-pre-line w-full text-black dark:text-white text-base">{description}</p>
<p class="break-words whitespace-pre-line w-full text-black dark:text-white text-base">
{description}
</p>
{/if}
</section>
{/if}