Skip to content

Commit 9bcd298

Browse files
Refactor DashboardViewRenderer to use Bootstrap class naming conventions for layout
1 parent b0763c7 commit 9bcd298

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/dashboard/sources/src/main/java/tools/dynamia/modules/dashboard/DashboardViewRenderer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private void renderFields(Dashboard dashboard, ViewDescriptor descriptor, List<D
106106
String colxs = "";
107107
if (field.getParams().containsKey(Viewers.PARAM_SPAN + "-xs")) {
108108
int spanxs = (int) field.getParams().get(Viewers.PARAM_SPAN + "-xs");
109-
colxs = " dt-col-" + toBootstrapColumns(spanxs);
109+
colxs = " col-" + toBootstrapColumns(spanxs);
110110
}
111111

112112
int tabletColSpan = 6;
@@ -118,7 +118,7 @@ private void renderFields(Dashboard dashboard, ViewDescriptor descriptor, List<D
118118
} catch (Exception e) {
119119
}
120120

121-
window.setSclass("dt-col-md-" + realSpan + " dt-col-sm-" + tabletColSpan + colxs);
121+
window.setSclass("col-md-" + realSpan + " col-sm-" + tabletColSpan + colxs);
122122
spaceLeft = spaceLeft - realSpan;
123123
window.setParent(row);
124124
if (spaceLeft <= 0) {
@@ -132,7 +132,7 @@ private void renderFields(Dashboard dashboard, ViewDescriptor descriptor, List<D
132132

133133
public Div newRow(Dashboard dashboard) {
134134
Div row = new Div();
135-
row.setZclass("dt-row");
135+
row.setZclass("row");
136136
row.setParent(dashboard);
137137
return row;
138138
}

0 commit comments

Comments
 (0)