Skip to content

Commit

Permalink
fix: Fix box-sizing of Layout Editor - MEED-6806 - Meeds-io/meeds#1966
Browse files Browse the repository at this point in the history
Prior to this change, the Layout editor wasn't displaying the right proportions when moving applications. This is due to the inherited box sizing which changed by the introduction of singlePageApplication.
  • Loading branch information
boubaker committed May 11, 2024
1 parent 428ca62 commit 606ead2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class="transparent"
role="main"
flat>
<div>
<div class="content-box-sizing">
<layout-editor-toolbar
:disable-save="!modified"
:page="pageContext"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div
ref="movingBox"
:style="boxStyle"
class="layout-selecting-container d-flex position-absolute elevation-2 z-index-modal">
class="layout-selecting-container border-box-sizing d-flex position-absolute elevation-2 z-index-modal">
</div>
</template>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div
v-show="multiCellsSelect"
:style="boxStyle"
class="layout-selecting-container grey opacity-5 elevation-2 position-absolute z-index-modal">
class="layout-selecting-container border-box-sizing grey opacity-5 elevation-2 position-absolute z-index-modal">
</div>
</template>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
-->
<template>
<div :class="gridClass">
<div :class="gridClass" class="border-box-sizing pb-5">
<layout-editor-section-selection-grid-cell
v-for="i in length"
:id="`grid-cell-${i}`"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
:hide-children="moving"
:class="{
'z-index-two': hover && !$root.drawerOpened,
'pb-12': movingChildren,
}"
:style="cssStyle"
class="position-relative d-flex flex-column"
Expand Down

1 comment on commit 606ead2

@Christyempire
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely 💯 💯 amazing

Please sign in to comment.