* fix: unify widget scroll areas * fix: cover all widget scroll areas * fix: align data table scrollbars
96 lines
2.9 KiB
CSS
96 lines
2.9 KiB
CSS
.homarr-data-table,
|
|
.homarr-data-table .mantine-datatable-table,
|
|
.homarr-data-table .mantine-datatable-table thead,
|
|
.homarr-data-table .mantine-datatable-table tbody,
|
|
.homarr-data-table .mantine-datatable-table tfoot,
|
|
.homarr-data-table th,
|
|
.homarr-data-table td {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.homarr-data-table .mantine-datatable-table tr {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.homarr-data-table .mantine-datatable-table {
|
|
width: 100% !important;
|
|
max-width: 100%;
|
|
table-layout: fixed !important;
|
|
}
|
|
|
|
.homarr-data-table .mantine-datatable-table tbody tr:hover {
|
|
background-color: color-mix(in srgb, var(--mantine-color-default-hover) 40%, transparent) !important;
|
|
}
|
|
|
|
.homarr-data-table .mantine-datatable-scroll-area-scrollbar[data-state="visible"]:hover {
|
|
@mixin light {
|
|
background-color: var(--mantine-color-gray-0);
|
|
}
|
|
|
|
@mixin dark {
|
|
background-color: var(--mantine-color-dark-8);
|
|
}
|
|
}
|
|
|
|
.homarr-data-table th {
|
|
padding: 0;
|
|
white-space: nowrap;
|
|
background-color: color-mix(in srgb, var(--mantine-color-body) 60%, transparent) !important;
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.homarr-data-table td {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Lets a cell's content (e.g. an oversized action icon) visually overflow its own box without
|
|
growing it - used to make a per-row icon look bigger without inflating row height, since the
|
|
icon is pulled out of flow via absolute positioning rather than actually being a bigger cell. */
|
|
.homarr-data-table td.docker-actions-cell {
|
|
overflow: visible;
|
|
}
|
|
|
|
.homarr-data-table td .mantine-Text-root,
|
|
.homarr-data-table td .mantine-Group-root {
|
|
white-space: nowrap;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.homarr-data-table .mantine-datatable-header-cell-sortable-icon,
|
|
.homarr-data-table .mantine-datatable-header-cell-draggable-action-icon {
|
|
opacity: 0;
|
|
transition: opacity 150ms ease-out;
|
|
}
|
|
|
|
.homarr-data-table .mantine-datatable-header-cell-sortable-group {
|
|
gap: 0;
|
|
}
|
|
|
|
.homarr-data-table .mantine-datatable-header-cell-draggable-action-icon {
|
|
margin: 0;
|
|
}
|
|
|
|
.homarr-data-table .mantine-datatable-header-cell-sortable-unsorted-icon {
|
|
display: none;
|
|
}
|
|
|
|
.homarr-data-table .mantine-datatable-header-cell-draggable-action-icon svg,
|
|
.homarr-data-table .mantine-datatable-header-cell-sortable-text svg,
|
|
.homarr-data-table .mantine-datatable-header-cell-sortable-icon svg {
|
|
width: var(--mantine-font-size-md);
|
|
height: var(--mantine-font-size-md);
|
|
}
|
|
|
|
.homarr-data-table th:hover .mantine-datatable-header-cell-sortable-icon,
|
|
.homarr-data-table th:hover .mantine-datatable-header-cell-draggable-action-icon,
|
|
.homarr-data-table .mantine-datatable-header-cell-draggable-action-icon:focus-visible,
|
|
.homarr-data-table .mantine-datatable-header-cell-drag-over .mantine-datatable-header-cell-draggable-action-icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
.homarr-data-table-row-cursor-default .mantine-datatable-context-menu-cursor {
|
|
cursor: default;
|
|
}
|