Skip to content

Commit 62a357c

Browse files
authored
Merge pull request #146 from smortex/improve-grid
Improve readability of large grid with a lot of data
2 parents 2d479c6 + bd08359 commit 62a357c

2 files changed

Lines changed: 22 additions & 161 deletions

File tree

Gemfile.lock

Lines changed: 0 additions & 158 deletions
This file was deleted.

lib/riemann/dash/views/css.scss

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ h2 {
441441
left: 0;
442442
right: 0;
443443
bottom: 0;
444+
overflow: auto;
444445
}
445446

446447
.bar {
@@ -468,18 +469,36 @@ h2 {
468469

469470
th {
470471
text-align: right;
472+
background-color: #fff;
471473
}
472474

473475
thead {
474476
margin: 0;
475477
padding: 0;
476478

477479
th {
478-
// Work around https://bugs.webkit.org/show_bug.cgi?id=20040
479-
position: relative;
480-
top: 3px;
481480
vertical-align: bottom;
482481
text-align: left;
482+
position: sticky;
483+
top: 0;
484+
z-index: 1;
485+
486+
&:first-child {
487+
left: 0;
488+
z-index: 2;
489+
}
490+
}
491+
}
492+
493+
tbody {
494+
tr:hover, tr:hover th {
495+
background-color: $cream;
496+
}
497+
498+
th {
499+
position: sticky;
500+
left: 0;
501+
z-index: 1;
483502
}
484503
}
485504
}

0 commit comments

Comments
 (0)