Skip to content

Commit

Permalink
Merge pull request #784 from iqb-berlin/fix-gm-col
Browse files Browse the repository at this point in the history
GM: add sticky to sticky header
  • Loading branch information
nam-du-iqb authored Jan 31, 2025
2 parents 3ab6629 + d93c320 commit d975b19
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 31 deletions.
74 changes: 44 additions & 30 deletions frontend/src/app/group-monitor/group-monitor.component.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,12 @@
.adminbackground {
padding-top: 0;
padding-top: 0;
}

mat-sidenav {
width: 350px;
min-width: 350px;
width: 350px;
min-width: 350px;
}

.test-session-table {
border-collapse: collapse;
display: table;
width: 100%;
}

.test-session-table thead tr td {
position: sticky;
top: 0;
z-index: 2;
background: rgba(255, 255, 255, 0.8);
}

.test-session-table td {
padding-top: 15px;
margin-right: 1em;
}

.test-session-table td[mat-sort-header="_checked"] {
padding-left: 5px;
}

.pending {
opacity: 0.5;
Expand Down Expand Up @@ -67,7 +46,7 @@ mat-sidenav {
.connection-status.polling-fetch,
.connection-status.polling-sleep {
position: relative;
background-image: linear-gradient(90deg, rgba(0,146,0,1) 0%, rgba(0,199,0,1) 100%, rgba(0,146,0,1) 200%);
background-image: linear-gradient(90deg, rgba(0, 146, 0, 1) 0%, rgba(0, 199, 0, 1) 100%, rgba(0, 146, 0, 1) 200%);
background-repeat: repeat-x;
background-position: 0;
animation-name: move-gradient;
Expand All @@ -86,13 +65,13 @@ mat-sidenav {

@keyframes pulse {
0% {
background: rgba(0,199,0,1);
background: rgba(0, 199, 0, 1);
}
50% {
background: rgba(0,146,0,1);
background: rgba(0, 146, 0, 1);
}
100% {
background: rgba(0,199,0,1);
background: rgba(0, 199, 0, 1);
}
}

Expand Down Expand Up @@ -153,7 +132,7 @@ mat-sidenav {
}

mat-sidenav {
width: 350px;
width: 350px;
}

#message-panel alert:first-of-type {
Expand Down Expand Up @@ -209,4 +188,39 @@ mat-sidenav {

.menu-filter-label {
word-break: break-word;
}
}

.test-session-table-wrapper {
overflow: auto;
max-width: 100%;
height: 80vh;
}

.test-session-table {
border-collapse: collapse;
display: table;
width: 100%;

thead tr td {
position: sticky;
top: 0;
z-index: 2;
background: white;
padding-top: 15px;
padding-bottom: 10px;
}

td {
padding-left: 1em;
}

td[mat-sort-header="_checked"] {
padding-left: 5px;
position: sticky;
left: 0;
z-index: 3;
background: white;
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ td:last-child {

td.selected {
padding-left: 5px;
position: sticky;
left: 0;
z-index: 1;
background: white;
}

td:last-child {
Expand Down Expand Up @@ -214,7 +218,7 @@ h2 {
.unit-badge.danger {
color: #821123;
}

.unit-badge.success {
color: #b2ff59
}

0 comments on commit d975b19

Please sign in to comment.