refactor: extract edit element in table

This commit is contained in:
Carlos Valente
2024-12-20 12:39:49 +01:00
committed by Carlos Valente
parent 2fc4e6da16
commit c445c42f8a
4 changed files with 28 additions and 26 deletions
@@ -32,23 +32,19 @@ $table-header-font-size: calc(1rem - 2px);
.tableHeader,
.eventRow {
.actionColumn {
width: calc(2rem + 0.5rem); // sm button size (--chakra-sizes-8) + 2 * padding
background-color: transparent;
}
.indexColumn {
display: flex;
align-items: center;
justify-content: end;
min-width: 3em; // allow for 3-digit numbers
text-align: right;
font-weight: 400;
font-size: $table-header-font-size;
position: sticky;
left: 0;
z-index: 1;
background-color: $gray-1300; // will be overridden inline
}
.actionColumn {
width: calc(2rem + 0.5rem); // sm button size (--chakra-sizes-8) + 2 * padding
min-width: 3em; // allow for 3-digit numbers
font-size: $table-header-font-size;
background-color: $gray-1300; // will be overridden inline
}
}