Skip to content

Commit

Permalink
TSK-988: sticky first column in hr calendar (#2867)
Browse files Browse the repository at this point in the history
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
  • Loading branch information
ThetaDR authored Mar 31, 2023
1 parent ccf6b70 commit 0a91451
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions packages/theme/styles/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,17 @@
}
}

.scroller-first-column {
th, td {
&:first-child {
position: sticky;
z-index: 1;
left: 0;
background-color: var(--body-color);
}
}
}

// THead background-color in Tooltip and Popups
.popup-tooltip .antiTable .scroller-thead,
.popup .antiTable .scroller-thead { background-color: var(--accent-bg-color); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@

{#if departmentStaff.length}
<Scroller {fade} horizontal>
<table>
<table class="scroller-first-column">
<thead class="scroller-thead">
<tr class="scroller-thead__tr">
<th>
Expand Down

0 comments on commit 0a91451

Please sign in to comment.