Skip to content

Commit

Permalink
fix for css of tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Aug 14, 2023
1 parent 962317e commit 2f9f604
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gui/admin-gui/src/frontend/scss/midpoint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1752,8 +1752,8 @@ th.debug-list-buttons {

.request-access-wizard {
& .simple-tile {
width: 250px;
height: 250px;
width: 220px;
height: 220px;
}

& .role-catalog-tiles-table .catalog-tile-panel {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
import com.evolveum.midpoint.model.api.authentication.CompiledObjectCollectionView;

import com.evolveum.midpoint.schema.util.ObjectTypeUtil;
import com.evolveum.midpoint.web.component.util.VisibleBehaviour;
import com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour;
import com.evolveum.midpoint.xml.ns._public.common.common_3.DisplayType;

import org.apache.commons.lang3.StringUtils;
import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.behavior.AttributeAppender;
Expand Down Expand Up @@ -89,7 +91,7 @@ protected WebMarkupContainer createIconPanel(String idIcon) {
}

protected VisibleEnableBehaviour getDescriptionBehaviour() {
return VisibleEnableBehaviour.ALWAYS_VISIBLE_ENABLED;
return new VisibleBehaviour(() -> StringUtils.isNotEmpty(tileModel.getObject().getDescription()));
}

@Override
Expand Down

0 comments on commit 2f9f604

Please sign in to comment.