Skip to content

Commit

Permalink
Editor / Remove extra space on mandatory add action
Browse files Browse the repository at this point in the history
If button label is not empty, do not add unneeded space. This was more visible on mandatory elements.
  • Loading branch information
fxprunayre authored Oct 17, 2023
1 parent 5b89070 commit 2be5a52
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions web/src/main/webapp/xslt/ui-metadata/form-builder.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -893,10 +893,8 @@
data-gn-field-highlight="">
<label class="col-sm-2 control-label"
data-gn-field-tooltip="{$schema}|{$qualifiedName}|{$parentName}|">
<xsl:if test="normalize-space($label) != ''">
<xsl:value-of select="$label"/>
</xsl:if>
&#160;
<xsl:value-of select="if (normalize-space($label) != '')
then $label else '&#160;'"/>
</label>
<div class="col-sm-9">

Expand Down

0 comments on commit 2be5a52

Please sign in to comment.