Skip to content

Commit

Permalink
feat: Move Hidden flag of Portlet - MEED-6202 - Meeds-io/MIPs#120
Browse files Browse the repository at this point in the history
This change will move the 'hidden' class to parent element of portlet instead of the child element to ensure to not have grid gap applied when the application is added in a dynamic of fixed section.
  • Loading branch information
boubaker committed Apr 22, 2024
1 parent 92fb6e6 commit fd4bbad
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -46,6 +46,10 @@
<%} %>
<%
}
String hiddenClass = "";
if(editMode == EditMode.NO_EDIT && (portletContent == null || org.apache.commons.lang3.StringUtils.isBlank(portletContent.toString()))) {
hiddenClass = "hidden";
}

if (editMode != EditMode.BLOCK) {
if(uicomponent.getShowInfoBar()) {
Expand Down Expand Up @@ -165,13 +169,9 @@
{
cssStyle += "height: "+ windowHeight +";";
}
String hiddenClass = "";
if(portletContent == null || org.apache.commons.lang3.StringUtils.isBlank(portletContent.toString())) {
hiddenClass = "hidden";
}
%>
<div id="<%=editMode == EditMode.NO_EDIT ? portletId : "EditMode-"+ portletId%>">
<div class="PORTLET-FRAGMENT $hiddenClass" style="${cssStyle}">
<div id="<%=editMode == EditMode.NO_EDIT ? portletId : "EditMode-"+ portletId%>" class="$hiddenClass">
<div class="PORTLET-FRAGMENT" style="${cssStyle}">
<%
if(hasAccessPermission)
{
Expand Down

0 comments on commit fd4bbad

Please sign in to comment.