Skip to content

Commit

Permalink
enhance(ui): add hint class for the blank content block
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 authored and tiensonqin committed Apr 11, 2023
1 parent 3971988 commit d4950b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/frontend/components/block.cljs
Expand Up @@ -2796,7 +2796,8 @@
:class (str uuid
(when pre-block? " pre-block")
(when (and card? (not review-cards?)) " shadow-md")
(when selected? " selected noselect"))
(when selected? " selected noselect")
(when (string/blank? content) " is-blank"))
:blockid (str uuid)
:haschild (str (boolean has-child?))}

Expand Down
1 change: 1 addition & 0 deletions src/main/frontend/components/block.css
Expand Up @@ -345,6 +345,7 @@

&.selected {
border-bottom-color: var(--ls-primary-background-color);
border-radius: 2px;

&:last-child {
border-bottom-color: transparent;
Expand Down

0 comments on commit d4950b1

Please sign in to comment.