This is an automated email from the ASF dual-hosted git repository.
dklco pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git
The following commit(s) were added to refs/heads/master by this push:
new 495ad3d Wrapped the buttons in the editor with an icon span to shrink
button size
495ad3d is described below
commit 495ad3d4282d375da64460402e9f519589cea332
Author: Dan Klco <[email protected]>
AuthorDate: Tue Jul 14 18:35:38 2020 -0400
Wrapped the buttons in the editor with an icon span to shrink button size
---
.../sling/cms/core/internal/filters/EditIncludeFilter.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
a/core/src/main/java/org/apache/sling/cms/core/internal/filters/EditIncludeFilter.java
b/core/src/main/java/org/apache/sling/cms/core/internal/filters/EditIncludeFilter.java
index 946c6b0..0ad8703 100644
---
a/core/src/main/java/org/apache/sling/cms/core/internal/filters/EditIncludeFilter.java
+++
b/core/src/main/java/org/apache/sling/cms/core/internal/filters/EditIncludeFilter.java
@@ -164,19 +164,19 @@ public class EditIncludeFilter implements Filter {
writer.write("<div class=\"control\"><a href=\"/cms/editor/edit.html"
+ resource.getPath() + "?editor="
+ editPath + "\" class=\"" + BUTTON_CLASSES + "\"
title=\"Edit " + title
- + "\"><span class=\"jam jam-pencil-f\"><span
class=\"is-vhidden\">Edit " + title
- + "</span></span></a></div>");
+ + "\"><span class=\"icon\"><span class=\"jam
jam-pencil-f\"><span class=\"is-vhidden\">Edit " + title
+ + "</span></span></span></a></div>");
if (!first || !last) {
writer.write("<div class=\"control\"><a
href=\"/cms/editor/reorder.html" + resource.getPath()
+ "\" class=\"" + BUTTON_CLASSES + "\" title=\"Reorder " +
title
- + "\"><span class=\"jam jam-arrows-v\"><span
class=\"is-vhidden\">Reorder " + title
- + "</span></span></a></div>");
+ + "\"><span class=\"icon\"><span class=\"jam
jam-arrows-v\"><span class=\"is-vhidden\">Reorder " + title
+ + "</span></span></span></a></div>");
}
if (!resource.getName().equals(JcrConstants.JCR_CONTENT) && exists) {
writer.write("<div class=\"control\"><a
href=\"/cms/editor/delete.html" + resource.getPath() + "\" class=\""
+ BUTTON_CLASSES
- + "\" title=\"Delete Component\"><span class=\"jam
jam-trash\"><span class=\"is-vhidden\">Delete "
- + title + "</span></span></a></div>");
+ + "\" title=\"Delete Component\"><span
class=\"icon\"><span class=\"jam jam-trash\"><span class=\"is-vhidden\">Delete "
+ + title + "</span></span></span></a></div>");
}
writer.write("</div></div>");