Skip to content

Commit

Permalink
Fix glitch in top row header in Grid component
Browse files Browse the repository at this point in the history
This was not working in the case of a group with only one column (for
example "I/O" in the "Details for all databases" grid).

We rely on the rowspan value instead of colspan.

We also avoid duplicated code along the way.
  • Loading branch information
pgiraud authored and rjuju committed Jul 30, 2024
1 parent b55a259 commit 459068f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions powa/static/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ pre.sql {
}
}

th[colspan]:not([colspan="1"]) {
border-left: thin solid rgba(var(--v-border-color), var(--v-border-opacity));
border-bottom: 0 !important;
}

th[colspan]:not([colspan="1"]) {
border-left: thin solid rgba(var(--v-border-color), var(--v-border-opacity));
border-bottom: 0 !important;
tr:first-child th {
&:not([rowspan="2"]) {
border-left: thin solid rgba(var(--v-border-color), var(--v-border-opacity));
}
&[rowspan="1"] {
border-bottom: 0 !important;
}
}

td {
Expand Down

0 comments on commit 459068f

Please sign in to comment.