Skip to content

Commit

Permalink
MID-8875 attempt to improve logo handling
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Jun 14, 2023
1 parent c287bbc commit ccec0b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gui/admin-gui/src/frontend/scss/midpoint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ body.custom-hold-transition {
}

& > a.custom-logo {
height: 3.5rem;
max-height: 3.5rem;

& > img {
vertical-align: middle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ public void onClick(AjaxRequestTarget target) {
}
};
customLogo.add(AttributeAppender.append("class", () -> WebComponentUtil.getMidPointSkin().getNavbarCss()));
customLogo.add(AttributeAppender.append("class", () -> logoModel.getObject().getCssClass()));
customLogo.add(AttributeAppender.append("class", () -> {
IconType icon = logoModel.getObject();
return StringUtils.isNotEmpty(icon.getImageUrl()) ? logoModel.getObject().getCssClass() : null;
}));
customLogo.add(new VisibleBehaviour(() -> isCustomLogoVisible()));
add(customLogo);

Expand Down

0 comments on commit ccec0b7

Please sign in to comment.