Skip to content

Commit 589126b

Browse files
authored
Keep the first cells of selected rows sticky (#2294)
1 parent 4966cf6 commit 589126b

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

webview/src/experiments/components/table/styles.module.scss

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -309,31 +309,37 @@ $workspace-row-edge-margin: $edge-padding - $cell-padding;
309309
}
310310
}
311311

312-
&:not(.rowSelected) {
313-
& > *:first-child {
314-
position: sticky;
315-
left: 0;
316-
z-index: 3;
312+
> *:first-child {
313+
position: sticky;
314+
left: 0;
315+
z-index: 3;
317316

318-
&:after {
319-
content: '';
320-
height: 100%;
321-
position: absolute;
322-
top: 0;
323-
width: 6px;
324-
right: 0;
325-
transition: box-shadow 0.25s;
326-
}
317+
&:after {
318+
content: '';
319+
height: 100%;
320+
position: absolute;
321+
top: 0;
322+
width: 6px;
323+
right: 0;
324+
transition: box-shadow 0.25s;
327325
}
328326
}
329327

330328
&.rowSelected {
331329
background-color: $row-bg-selected-color;
330+
331+
> *:first-child {
332+
background-color: $row-bg-color;
333+
334+
&:before {
335+
background-color: $row-bg-selected-color;
336+
}
337+
}
332338
}
333339
}
334340

335341
.table.withExpColumnShadow {
336-
.tr:not(.rowSelected) > *:first-child:after {
342+
.tr > *:first-child:after {
337343
box-shadow: 3px 0px 3px $shadow;
338344
}
339345
}
@@ -369,7 +375,7 @@ $workspace-row-edge-margin: $edge-padding - $cell-padding;
369375
background-color: $header-bg-color;
370376
}
371377

372-
&:not(.rowSelected) > *:first-child:after {
378+
& > *:first-child:after {
373379
right: -1px;
374380
}
375381

0 commit comments

Comments
 (0)