Skip to content

Commit

Permalink
css fixes for postcoordination table and scale value cards
Browse files Browse the repository at this point in the history
  • Loading branch information
soimugeo committed Oct 23, 2024
1 parent ad15200 commit 68f5c0f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

.rotatedHeader div {
transform-origin: left;
transform: rotate(-75deg) translate(-50px, 100%);
transform: rotate(-80deg) translate(-70px, 100%);
display: table-cell;
vertical-align: middle;
text-align: start;
Expand All @@ -36,26 +36,33 @@
}

.customRowStyle td {
vertical-align: middle!important;
vertical-align: middle !important;
}

.evenRowStyle td {
vertical-align: middle!important;
vertical-align: middle !important;
}


.headerLabel {
display: flex;
justify-content: center;
align-items: center;
min-height: 120px;
min-height: 180px;
min-width: 13vw;
font-size: 14px;
font-weight: bold;
}

.headerLabelRow {
background-color: #186cd4;
background-color: literal("var(--grid-header--background-color)");
border-radius: literal("var(--grid-header--border-radius)");
color: literal("var(--grid-header--color)");
min-height: 1rem;
font-weight: bold;
padding-top: 0.3em;
padding-bottom: 0.3em;
height: 180px;
}


Expand Down Expand Up @@ -83,12 +90,14 @@
}

.scaleValueHeader {
background-color: literal("var(--grid-header--background-color)");
border-radius: literal("var(--grid-header--border-radius)");
color: literal("var(--grid-header--color)");
min-height: 1rem;
font-weight: bold;
font-size: 14px;
color: #fff;
line-height: 1.4;
background-color: #186cd4;
padding: 4px;
font-weight: bold;
font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
border-top-left-radius: 5px;
border-top-right-radius: 5px
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,11 @@ private void setReadOnly(boolean readOnly) {
isReadOnly = readOnly;

for (int i = 1; i < valueTable.getRowCount(); i++) {
int cellsInRow = valueTable.getCellCount(i);
if (readOnly) {
valueTable.getRowFormatter().addStyleName(i, postCoordinationStyle.disabled());
valueTable.getCellFormatter().addStyleName(i, cellsInRow - 1, postCoordinationStyle.disabled());
} else {
valueTable.getRowFormatter().removeStyleName(i, postCoordinationStyle.disabled());
valueTable.getCellFormatter().removeStyleName(i, cellsInRow - 1, postCoordinationStyle.disabled());
}
}
}
Expand Down

0 comments on commit 68f5c0f

Please sign in to comment.