Skip to content

Commit

Permalink
fixed button size on operational panel, 2px height difference was the…
Browse files Browse the repository at this point in the history
…re before
  • Loading branch information
1azyman committed Feb 11, 2022
1 parent fde0fe5 commit d4ff54d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,14 @@ public void onComponentTagBody(final MarkupStream markupStream, final ComponentT

String icon = getModelObject();
if (StringUtils.isNotEmpty(icon)) {
sb.append("<i class=\"").append(icon).append("\"");
if (showTitleAsLabel && StringUtils.isNotEmpty(title)) {
sb.append(" style=\"margin-right: 5px;\"");
}
sb.append("></i>");
sb.append("<i class=\"").append(icon).append("\"></i>");
}

if (StringUtils.isEmpty(icon)) {
sb.append(title);
} else {
if (showTitleAsLabel) {
sb.append(title);
sb.append("<span class=\"operationalButtonLabel\">").append(title).append("</span>");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2260,8 +2260,9 @@ fieldset.objectButtons {

.execute-options-label {
display: inline;
margin-left: 5px;
margin: 0 5px;
font-weight: 400;
font-size: 13px;
}

.details-panel {
Expand Down

0 comments on commit d4ff54d

Please sign in to comment.