fix placeholder not displaying on empty text

This commit is contained in:
froehlichA 2023-03-18 23:34:44 +01:00
parent e9f0a8431d
commit 5cb07b20a9

View file

@ -102,7 +102,7 @@
bind:value={state.description}
></textarea>
<span
class="avatar-plugin--md-preview"
class="avatar-plugin--md-preview with-placeholder"
hidden={editMode}
bind:this={descriptionPreviewEl}
data-placeholder="Write your story..."
@ -153,7 +153,7 @@
height: 100%;
}
[contenteditable=true]:empty:not(:focus):before{
.with-placeholder:empty:before {
content: attr(data-placeholder);
color: var(--text-faint);
font-style: italic;