Skip to content

Commit

Permalink
hide empty settings descrition (#8739)
Browse files Browse the repository at this point in the history
Co-authored-by: Charlie <xyhp915@qq.com>
  • Loading branch information
yoyurec and xyhp915 committed Mar 3, 2023
1 parent 701223d commit 5d0117b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main/frontend/components/plugins.css
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,13 @@
margin: 12px 12px 6px;
border-bottom: 1px solid var(--ls-border-color, #738694);

> h2 {
h2 {
font-weight: bold;
}

small:empty {
display: none;
}
}

.desc-item {
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/components/plugins_settings.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
[:div.heading-item
{:data-key key}
[:h2 title]
[:small.pl-1.flex-1 description]])
[:small description]])

(rum/defc settings-container
[schema ^js pl]
Expand Down

0 comments on commit 5d0117b

Please sign in to comment.