Skip to content

Commit

Permalink
Merge pull request #1424 from Opekunov/sticky-columns
Browse files Browse the repository at this point in the history
feat: sticky columns
  • Loading branch information
lee-to authored Dec 26, 2024
2 parents 6118da1 + fa8a993 commit add4cf7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/UI/resources/css/components/tables.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,25 @@ table {
@apply sticky -top-1 z-1 bg-slate-50 dark:bg-dark-700;
}
}

/* Sticky Columns */
th,
td {
&.sticky-col--right,
&.sticky-col--left {
@apply sticky bg-white dark:bg-dark-600;
}
&.sticky-col--right {
@apply right-0;
}
&.sticky-col--left {
@apply left-0;
}
}

th {
&.sticky-col--right,
&.sticky-col--left {
@apply bg-slate-50 p-4 dark:bg-dark-700;
}
}
8 changes: 8 additions & 0 deletions src/UI/resources/css/minimalistic.css
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,14 @@ body.theme-minimalistic {
@apply dark:bg-dark-800;
}

/* Sticky Columns */
th {
&.sticky-col--right,
&.sticky-col--left {
@apply bg-dark-50 dark:bg-dark-800;
}
}

/* Alerts */
.alert {
@apply gap-x-2 rounded-md p-2;
Expand Down

0 comments on commit add4cf7

Please sign in to comment.