Skip to content

Commit

Permalink
MID-6271 fixed reports ui icons
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed May 12, 2022
1 parent 5a2e648 commit 2075bb1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
17 changes: 17 additions & 0 deletions gui/admin-gui/src/frontend/scss/midpoint-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1767,6 +1767,23 @@ fieldset.objectButtons {
text-decoration: line-through;
}


.card-body.p-0 & {
thead > tr > th,
thead > tr > td,
tfoot > tr > th,
tfoot > tr > td,
tbody > tr > th,
tbody > tr > td {
&.icon:first-of-type,
&.composited-icon:first-of-type,
&.icon:last-of-type,
&.composited-icon:last-of-type,{
width: 52px !important;
}
}
}

// todo cleanup
th, td {
&.check {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
public class GuiStyleConstants {

public static final String ICON_FAR_COPY="far fa-copy";

public static final String CLASS_BOX = "box";
public static final String CLASS_BOX_DEFAULT = "box-default";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ public class MessageTemplateSummaryPanel extends ObjectSummaryPanel<MessageTempl
public MessageTemplateSummaryPanel(String id, IModel<MessageTemplateType> model, SummaryPanelSpecificationType specification) {
super(id, MessageTemplateType.class, model, specification);
}

@Override
protected String getDefaultIconCssClass() {
return GuiStyleConstants.CLASS_VALUE_POLICY_ICON;
return GuiStyleConstants.EVO_MESSAGE_TEMPLATE_TYPE_ICON;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void onClick(AjaxRequestTarget target) {

@Override
public CompositedIconBuilder getIconCompositedBuilder() {
return getDefaultCompositedIconBuilder("fa fa-files-o");
return getDefaultCompositedIconBuilder(GuiStyleConstants.ICON_FAR_COPY);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public void onClick(AjaxRequestTarget target) {

@Override
public CompositedIconBuilder getIconCompositedBuilder(){
return getDefaultCompositedIconBuilder("fa fa-files-o");
return getDefaultCompositedIconBuilder(GuiStyleConstants.ICON_FAR_COPY);
}

@Override
Expand Down

0 comments on commit 2075bb1

Please sign in to comment.