Skip to content

Commit 3f3b1c7

Browse files
authored
Merge pull request #1474 from nakrovati/fix-table
fix(web): disappearing border on the left side of tables when scrolling
2 parents 875d0eb + 05cad6a commit 3f3b1c7

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

webdriver-ts-results/src/App.css

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ thead.dummy th {
7575
text-align: left;
7676
overflow: visible;
7777
height: 42px;
78-
padding:0 !important;
79-
border:0;
78+
padding: 0 !important;
79+
border: 0;
8080
}
8181
td > h3 {
82-
position:absolute;
82+
position: absolute;
8383
font-size: 16px;
8484
margin: 0px;
8585
padding: 10px;
86-
top:0;
87-
left:0;
86+
top: 0;
87+
left: 0;
8888
width: 800px;
8989
height: 40px;
9090
background-color: #fff;
@@ -97,13 +97,12 @@ td {
9797
max-width: 100%;
9898
}
9999
.results__table-container {
100-
overflow-x: scroll;
100+
overflow-x: auto;
101101
}
102102
.results__table {
103103
font-size: 11px;
104104
width: 150px;
105105
table-layout: fixed;
106-
border-spacing: 0;
107106
border-collapse: collapse;
108107
}
109108
.results__table th {
@@ -131,6 +130,25 @@ td {
131130
width: 120px;
132131
background-color: white;
133132
}
133+
.results__table th:first-child::before,
134+
.results__table td:not(.description):first-child::before,
135+
.results__table th:first-child::after,
136+
.results__table td:not(.description):first-child::after {
137+
content: "";
138+
position: absolute;
139+
top: 0;
140+
bottom: 0;
141+
width: 1px;
142+
background-color: #dddddd;
143+
}
144+
.results__table th:first-child::before,
145+
.results__table td:first-child::before {
146+
left: -1px;
147+
}
148+
.results__table th:first-child::after,
149+
.results__table td:first-child::after {
150+
right: -1px;
151+
}
134152

135153
.rowCount {
136154
font-size: 10px;

0 commit comments

Comments
 (0)