mirror of
https://github.com/maradotwebp/obsidian-avatar.git
synced 2026-07-22 07:30:24 +00:00
fix placeholder not displaying on empty text
This commit is contained in:
parent
e9f0a8431d
commit
5cb07b20a9
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue