Skip to content

Commit

Permalink
fixup! Figure out how to reset column widths on switching routes
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowbas authored and bas080 committed Jan 10, 2025
1 parent e668022 commit 3438fcd
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/* Transition causes column width calculations to glitch. */
.mat-drawer-transition .mat-drawer-content {
transition: none !important;
transition: none !important;
}

canvastablecontainer {
Expand Down Expand Up @@ -106,7 +106,8 @@ canvastablecontainer {
padding-bottom: var(--cell-y-spacing);
}

& td, & th {
& td,
& th {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
Expand All @@ -128,7 +129,8 @@ canvastablecontainer {
background-color: var(--focussed-color);
}

& tbody:hover, & tbody.selected {
& tbody:hover,
& tbody.selected {
background-color: var(--selected-color);
}

Expand All @@ -141,9 +143,11 @@ canvastablecontainer {
& {
display: block;
}

& thead {
display: none;
}

& tbody {
display: block;
}
Expand Down Expand Up @@ -172,21 +176,25 @@ canvastablecontainer {
}

.skeleton-bone {
content: ' ';
display: inline-block;
width: 100%; /* Adjust based on the required placeholder size */
height: 1em; /* Adjust for height */
background: linear-gradient(90deg, #e0e0e0 25%, #f8f8f8 50%, #e0e0e0 75%);
background-size: 200% 100%;
animation: skeleton-loading 1.5s infinite;
border-radius: 4px; /* Optional for rounded edges */
content: ' ';
display: inline-block;
width: 100%;
/* Adjust based on the required placeholder size */
height: 1em;
/* Adjust for height */
background: linear-gradient(90deg, #e0e0e0 25%, #f8f8f8 50%, #e0e0e0 75%);
background-size: 200% 100%;
animation: skeleton-loading 1.5s infinite;
border-radius: 4px;
/* Optional for rounded edges */
}

@keyframes skeleton-loading {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
0% {
background-position: 200% 0;
}

100% {
background-position: -200% 0;
}
}

0 comments on commit 3438fcd

Please sign in to comment.