Skip to content

Commit

Permalink
Improve sidebar item visibility handling
Browse files Browse the repository at this point in the history
Added CSS rules to manage text-overflow, opacity, and visibility of sidebar items. This ensures smooth transition effects when the sidebar is toggled between collapsed and expanded states.
  • Loading branch information
leolabdev committed Sep 20, 2024
1 parent 2285556 commit dedfbc2
Showing 1 changed file with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

}

//.side

.button{
z-index: calc(var(--sidebar-z-index) + 1 );
width: 33px;
Expand Down Expand Up @@ -66,36 +64,40 @@
}
}











.items {
margin-top: 70px;
display: flex;
flex-direction: column;
gap: 10px;

.item {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
transition: opacity 0.4s ease, visibility 0.4s ease;
}

&.collapsed .item {
opacity: 0;
visibility: hidden;
}

&.expanded .item {
opacity: 1;
visibility: visible;
}
}

.collapsed {
width: var(--sidebar-width-collapsed);
opacity: 0;
transition: width 0.4s ease-out, opacity 0.4s ease-out;
}

.expanded {
width: var(--sidebar-width);
opacity: 1;
transition: width 0.4s ease-in, opacity 0.4s ease-in;
}


.bottomItems{
display: flex;
margin: 20px 0;
Expand Down

0 comments on commit dedfbc2

Please sign in to comment.