Skip to content

Commit

Permalink
feat: Move Hidden flag of Portlet - MEED-6202 - Meeds-io/MIPs#120 (#874)
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 authored and exo-swf committed Apr 26, 2024
1 parent 90fd794 commit 47f4411
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
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 47f4411

Please sign in to comment.