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 committed Apr 24, 2024
1 parent 2fa6183 commit 74930ad
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 74930ad

Please sign in to comment.