From ec2fca774a7bcc163328a18c76ade90c42008265 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Tue, 30 Mar 2021 10:43:18 +0200 Subject: [PATCH] Tag widget style fix: widget now hidden when empty --- src/editor/widgets/tag/TagWidget.jsx | 36 ++++++++++----------- themes/default/editor/widgets/tag/_tag.scss | 2 +- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/src/editor/widgets/tag/TagWidget.jsx b/src/editor/widgets/tag/TagWidget.jsx index ea49d0a..461cfa5 100644 --- a/src/editor/widgets/tag/TagWidget.jsx +++ b/src/editor/widgets/tag/TagWidget.jsx @@ -61,27 +61,25 @@ const TagWidget = props => { return (
-
- { tags.length > 0 && -
    - { tags.map(tag => -
  • - {tag.value} + { tags.length > 0 && +
      + { tags.map(tag => +
    • + {tag.value} - {!props.readOnly && - - - - - + {!props.readOnly && + + + + - - } -
    • - )} -
    - } -
+ + + } + + )} + + } {!props.readOnly &&