Skip to content

Commit

Permalink
Merge pull request #2871 from AlchemyCMS/backport/7.0-stable/pr-2870
Browse files Browse the repository at this point in the history
[7.0-stable] Fix preview window resize transition
  • Loading branch information
tvdeyen authored May 14, 2024
2 parents b03efc5 + 8d475fc commit f37de46
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/assets/stylesheets/alchemy/preview_window.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@
border: 0 none;
background: #fff;
border-right: $default-border;
transition: $transition-duration ease-in-out;
transition: width $transition-duration ease-in-out;

.collapsed-menu & {
left: $collapsed-main-menu-width;
width: calc(100vw - #{$collapsed-main-menu-width - $default-border-width});
}

.collapsed-menu.elements-window-visible & {
width: calc(100vw - #{$collapsed-main-menu-width - $default-border-width} - #{$elements-window-width});
width: calc(
100vw - #{$collapsed-main-menu-width - $default-border-width} - #{$elements-window-width}
);

@media screen and (min-width: $large-screen-break-point) {
max-width: calc(100vw - #{$collapsed-main-menu-width - $default-border-width} - #{$elements-window-min-width});
width: calc(
100vw - #{$collapsed-main-menu-width - $default-border-width} - #{$elements-window-min-width}
);
}
}
}

0 comments on commit f37de46

Please sign in to comment.