diff --git a/src/lib/components/anilistItems.svelte b/src/lib/components/anilistItems.svelte index 103fbab..fcc4937 100644 --- a/src/lib/components/anilistItems.svelte +++ b/src/lib/components/anilistItems.svelte @@ -1,5 +1,7 @@
@@ -23,9 +29,11 @@ {#if cover}
{title} -
- {title} -
+ {#if $showType == "grid"} +
+ {title} +
+ {/if}
{:else} Broken art @@ -46,8 +54,12 @@ {/if}
-
- {title} +
+ {#if $showType == "comfortable"} + + {title} + + {/if}
@@ -125,11 +137,13 @@ text-overflow: ellipsis; -webkit-line-clamp: 3; -webkit-box-orient: vertical; - transition: max-height .3s; + transition: max-height .3s ease; } - .hidden { - opacity: 0; - user-select: none; + .comfortable-div span { + display: block; + width: 100%; + } + .comfortable-div.hiding { max-height: 0; } .item img { diff --git a/src/lib/components/mangadexItems.svelte b/src/lib/components/mangadexItems.svelte index 8bc0236..6e82a0f 100644 --- a/src/lib/components/mangadexItems.svelte +++ b/src/lib/components/mangadexItems.svelte @@ -1,5 +1,7 @@