Skip to content

Commit

Permalink
fix: fixed collapsed settings blinking during resize
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBazukevich committed Jun 28, 2023
1 parent f9598ee commit dabe412
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/core/base/root.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@

&[settings-collapsed] > .uip-settings {
max-width: 0;
max-height: 0;
transition: max-width .3s ease-in-out, max-height 0s .3s;

&-inner {
visibility: hidden;
transition: visibility 0s .3s;
}

@media @mobile {
max-height: 0;
max-width: 100%;
transition: max-height .3s ease-in-out;

.scrollbar-collapsed();
}
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/settings/settings.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
grid-area: settings;
width: 250px;
max-width: 250px;
max-height: 100%;
overflow: hidden;
transition: max-width 0.3s ease-in-out;
transition: max-width 0.3s ease-in-out, max-height 0s;
accent-color: @dark-text;

&-inner {
Expand Down

0 comments on commit dabe412

Please sign in to comment.