mirror of
https://github.com/SigNoz/signoz.git
synced 2026-05-06 02:20:31 +01:00
Some checks failed
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
* refactor(tanstack): move table to components & convert to css modules * refactor(table): extract table to own component * refactor(table): optimize * chore(tests): cleanup tests and components * fix(styles): minor fixes on styles * fix(tests): use find by text * fix(row): missing active styles * refactor(tanstack-table): refine component based on infra monitoring * docs(tanstacktable): add more docs about usage * refactor(table): cleanup and fixes related to column and old preferences of logs * refactor(table): more cleanup * refactor(table): removed deprecated api * fix(tanstack): more cleanup * fix(sonner): removed old dependency * fix(resizing): better resizing support * fix(tanstack-header-row): use our version of popover * fix(column-view): remove unused file * fix(oxlint): alerts and issues * fix(test): rollback aria-sort and rename to data-sort
153 lines
2.6 KiB
SCSS
153 lines
2.6 KiB
SCSS
.tanstackTableViewWrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
width: 100%;
|
|
position: relative;
|
|
min-height: 0;
|
|
}
|
|
|
|
.tanstackFixedCol {
|
|
width: 32px;
|
|
min-width: 32px;
|
|
max-width: 32px;
|
|
}
|
|
|
|
.tanstackFillerCol {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.tanstackActionsCol {
|
|
width: 0;
|
|
min-width: 0;
|
|
max-width: 0;
|
|
}
|
|
|
|
.tanstackLoadMoreContainer {
|
|
width: 100%;
|
|
min-height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px 0 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tanstackTableVirtuoso {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.tanstackTableFootLoaderCell {
|
|
text-align: center;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.tanstackTableVirtuosoScroll {
|
|
flex: 1;
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--bg-slate-300) transparent;
|
|
|
|
&::-webkit-scrollbar {
|
|
width: 4px;
|
|
height: 4px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
background: transparent;
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background: var(--bg-slate-300);
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb:hover {
|
|
background: var(--bg-slate-200);
|
|
}
|
|
|
|
&.cellTypographySmall {
|
|
--tanstack-plain-cell-font-size: 11px;
|
|
--tanstack-plain-cell-line-height: 16px;
|
|
|
|
:global(table tr td),
|
|
:global(table thead th) {
|
|
font-size: 11px;
|
|
line-height: 16px;
|
|
letter-spacing: -0.07px;
|
|
}
|
|
}
|
|
|
|
&.cellTypographyMedium {
|
|
--tanstack-plain-cell-font-size: 13px;
|
|
--tanstack-plain-cell-line-height: 20px;
|
|
|
|
:global(table tr td),
|
|
:global(table thead th) {
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
letter-spacing: -0.07px;
|
|
}
|
|
}
|
|
|
|
&.cellTypographyLarge {
|
|
--tanstack-plain-cell-font-size: 14px;
|
|
--tanstack-plain-cell-line-height: 24px;
|
|
|
|
:global(table tr td),
|
|
:global(table thead th) {
|
|
font-size: 14px;
|
|
line-height: 24px;
|
|
letter-spacing: -0.07px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.paginationContainer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.paginationPageSize {
|
|
width: 80px;
|
|
--combobox-trigger-height: 2rem;
|
|
}
|
|
|
|
.tanstackLoadingOverlay {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 2rem;
|
|
transform: translateX(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
pointer-events: none;
|
|
z-index: 3;
|
|
border-radius: 8px;
|
|
padding: 8px 16px;
|
|
background: var(--l1-background);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
:global(.lightMode) .tanstackTableVirtuosoScroll {
|
|
scrollbar-color: var(--bg-vanilla-300) transparent;
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background: var(--bg-vanilla-300);
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb:hover {
|
|
background: var(--bg-vanilla-100);
|
|
}
|
|
}
|