Skip to content

Commit

Permalink
fix: 🐛 headers and cells are not aligned correctly
Browse files Browse the repository at this point in the history
headers does not subtract  the icons width when they are aligned to center
cells cannot be aligned to center or right when the HTMLRenderer is used
  • Loading branch information
hyyan committed Nov 17, 2020
1 parent 139b01f commit f8db034
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions client/dist/bbj-grid-widget.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/dist/bbj-grid-widget.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/dist/report.html

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions client/src/style/classes.css
Expand Up @@ -7,14 +7,16 @@
*/

.gw-alignment-cell-right,
.gw-alignment-cell-right .ag-cell-value {
.gw-alignment-cell-right .ag-cell-value,
.gw-alignment-cell-right .templateRenderer {
text-align: right;
justify-content: flex-end;
flex: 1;
}

.gw-alignment-cell-center,
.gw-alignment-cell-center .ag-cell-value {
.gw-alignment-cell-center .ag-cell-value,
.gw-alignment-cell-center .templateRenderer {
text-align: center;
justify-content: center;
flex: 1;
Expand All @@ -25,8 +27,12 @@
}

.gw-alignment-header-center .ag-header-cell-label {
flex-direction: column;
align-self: center;
display: flex;
justify-content: center;
}

.gw-alignment-header-center .ag-header-cell-text {
margin-left: -16px !important;
}

.gw-alignment-header-right .ag-cell-label-container,
Expand Down

0 comments on commit f8db034

Please sign in to comment.