mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-28 14:17:19 +02:00
Update item description to support rich text #1281
This commit is contained in:
@@ -52,4 +52,16 @@
|
|||||||
text-indent: 0px !important;
|
text-indent: 0px !important;
|
||||||
text-align: start !important;
|
text-align: start !important;
|
||||||
text-align-last: start !important;
|
text-align-last: start !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.default-style.less-spacing p {
|
||||||
|
margin-block-start: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.default-style.less-spacing ul {
|
||||||
|
margin-block-start: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.default-style.less-spacing ol {
|
||||||
|
margin-block-start: 0;
|
||||||
|
}
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="description" class="w-full py-2">
|
<div v-if="description" class="w-full py-2">
|
||||||
<p ref="description" class="text-sm text-justify whitespace-pre-line font-light" :class="{ 'line-clamp-4': !showFullDescription }" style="hyphens: auto">{{ description }}</p>
|
<div ref="description" class="default-style less-spacing text-sm text-justify whitespace-pre-line font-light" :class="{ 'line-clamp-4': !showFullDescription }" style="hyphens: auto" v-html="description" />
|
||||||
|
|
||||||
<div v-if="descriptionClamped" class="text-fg text-sm py-2" @click="showFullDescription = !showFullDescription">
|
<div v-if="descriptionClamped" class="text-fg text-sm py-2" @click="showFullDescription = !showFullDescription">
|
||||||
{{ showFullDescription ? $strings.ButtonReadLess : $strings.ButtonReadMore }}
|
{{ showFullDescription ? $strings.ButtonReadLess : $strings.ButtonReadMore }}
|
||||||
|
|||||||
Reference in New Issue
Block a user