Skip to content

Commit

Permalink
Fix preview window width for smaller viewports
Browse files Browse the repository at this point in the history
We need to adjust the media query to the value the elements
window goes from fixed to a variable width.

(cherry picked from commit 124db50)
  • Loading branch information
tvdeyen committed May 23, 2024
1 parent 9493f76 commit 2bff1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/stylesheets/alchemy/preview_window.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

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

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

0 comments on commit 2bff1b4

Please sign in to comment.