Skip to content

Commit

Permalink
Fix #25918 Styles in template dropdown when creating new pages (#25922)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmontes committed Aug 28, 2023
1 parent 7d4f4a8 commit cd64f02
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
20 changes: 19 additions & 1 deletion core-web/libs/dotcms-scss/jsp/scss/dijit/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
padding: 0;
border: 0 none;

// Template selector in create page form
&#templateSel_popup {
.dijitMenuItem {
height: auto;
padding: $spacing-1 $spacing-2;
gap: $spacing-0;

small {
color: $color-palette-gray-700;
}
}
}

.dijitMenuItem {
display: flex;
padding: 0 $spacing-2;
Expand Down Expand Up @@ -47,6 +60,12 @@
}
}

// http://localhost:8080/dotAdmin/#/c/maintenance
// Specific to the maintenance page to prevent double scrollbars
.dijitComboBoxMenuPopup#widget_cache_list_dropdown {
max-height: 17.5rem !important;
}

.dijitComboBoxMenuPopup {
background: $white;
color: $black;
Expand All @@ -55,7 +74,6 @@
box-shadow: $md-shadow-6;
padding: $spacing-1;
margin-top: $spacing-1;
max-height: 17.5rem !important;

.dijitMenuItem {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private Map<String, Object> buildTemplateMap(Template template) throws DotDataEx
templateMap.put("hostName", parentHost.getHostname());
templateMap.put("hostId", parentHost.getIdentifier());
templateMap.put("fullTitle", templateMap.get("title") + " (" + parentHost.getHostname() + ")" );
templateMap.put("htmlTitle", "<div><div style='float:left'>" + templateMap.get("title") + "</div><div style='float:right'>" + parentHost.getHostname() + "</div></div>" );
templateMap.put("htmlTitle", "<div>" + templateMap.get("title") + "</div><small>" + parentHost.getHostname() + "</div></small>" );
} else {
templateMap.put("fullTitle", templateMap.get("title"));
templateMap.put("htmlTitle", templateMap.get("title"));
Expand Down
13 changes: 12 additions & 1 deletion dotCMS/src/main/webapp/html/css/dijit-dotcms/dotcms.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ dd.leftdl {
<tr>
<td>&nbsp;</td>
<td align="right" style="white-space: nowrap;">
<select name="cName" dojoType="dijit.form.ComboBox" autocomplete="true" value="<%= LanguageUtil.get(pageContext,"Flush-All-Caches") %>">
<select id="cache_list" name="cName" dojoType="dijit.form.ComboBox" autocomplete="true" value="<%= LanguageUtil.get(pageContext,"Flush-All-Caches") %>">
<option selected="selected" value="all"><%= LanguageUtil.get(pageContext,"Flush-All-Caches") %></option>
<% Object[] caches = (Object[])CacheLocator.getCacheIndexes();
String[] indexValue = new String[caches.length];
Expand Down

0 comments on commit cd64f02

Please sign in to comment.