chore: refactor interfaces (#2849)

* chore: refactor interfaces

* chore: fix uptime
This commit is contained in:
Alex Inkin
2025-03-17 22:07:52 +04:00
committed by GitHub
parent be0371fb11
commit a18ab7f1e9
26 changed files with 917 additions and 620 deletions

View File

@@ -120,7 +120,7 @@ hr {
}
}
> table {
> table[tuiTable] {
margin: 0 -0.5rem;
td:empty,
@@ -131,15 +131,15 @@ hr {
> header {
position: absolute;
top: 0;
left: 0;
right: 0;
inset: 0 0 auto 0;
height: 3rem;
display: flex;
align-items: center;
padding: 0.5rem 1rem;
background: var(--tui-background-neutral-1);
gap: 0.25rem;
padding: 0 1rem;
font: var(--tui-font-text-l);
font-weight: bold;
background: var(--tui-background-neutral-1);
}
> footer {
@@ -152,45 +152,51 @@ hr {
.g-table:not([tuiTable]) {
width: stretch;
min-width: 40rem;
border: 1px solid var(--tui-background-neutral-1);
border-spacing: 0;
border-collapse: collapse;
border-radius: var(--tui-radius-s);
overflow: hidden;
box-shadow: inset 0 0 0 1px var(--tui-background-neutral-1);
td,
th {
position: relative;
font: var(--tui-font-text-s);
text-align: left;
height: 2rem;
padding: 0 0.25rem;
box-shadow: inset 0 -1px var(--tui-background-neutral-1);
padding: 0.5rem 0.75rem;
border: 1px solid var(--tui-background-neutral-1);
border-left: 0;
border-right: 0;
text-overflow: ellipsis;
}
th {
background: var(--tui-background-neutral-1);
font-weight: bold;
text-align: left;
}
tui-root._mobile & {
min-width: 0;
border: none;
box-shadow: none;
border-radius: 0;
color: var(--tui-text-secondary);
thead {
display: none;
}
tbody {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
tr {
position: relative;
display: grid;
border-radius: var(--tui-radius-l);
padding: 0.375rem 0.5rem;
// TODO: Theme
background: rgba(0, 0, 0, 0.2);
padding: 0.5rem 0;
box-shadow: inset 0 -1px var(--tui-background-neutral-1);
&:last-child {
box-shadow: none;
}
}
tr:has(:checked) {
@@ -200,10 +206,13 @@ hr {
td,
th {
position: static;
height: auto;
min-height: 1.5rem;
align-content: center;
box-shadow: none;
border: none;
padding: 0;
&:first-child {
font-weight: bold;
color: var(--tui-text-primary);
}
&:not([tuiFade]) {
overflow: hidden;