Skip to content

Commit 04163da

Browse files
author
Lukasz Borowiec
committed
#514: User sees content snapshot on Category page in Admin Panel #3 - Code Review fixes
1 parent 1bf941b commit 04163da

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/_page-builder.less

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -139,22 +139,26 @@
139139
}
140140
}
141141

142-
.pagebuilder-stage-overlay {
143-
display: none;
144-
height: 0;
145-
left: 0;
146-
position: absolute;
147-
top: 0;
148-
visibility: hidden;
149-
width: 0;
150-
151-
&.active {
152-
cursor: pointer;
153-
display: block;
154-
height: 100%;
155-
visibility: visible;
156-
width: 100%;
157-
z-index: @z-index-2;
142+
.page-builder-wysiwyg-wrapper {
143+
position: relative;
144+
145+
.pagebuilder-wysiwyg-overlay {
146+
display: none;
147+
height: 0;
148+
left: 0;
149+
position: absolute;
150+
top: 0;
151+
visibility: hidden;
152+
width: 0;
153+
154+
&.active {
155+
cursor: pointer;
156+
display: block;
157+
height: 100%;
158+
visibility: visible;
159+
width: 100%;
160+
z-index: @z-index-2;
161+
}
158162
}
159163
}
160164

app/code/Magento/PageBuilder/view/adminhtml/web/template/form/element/wysiwyg.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77

8-
<div visible="visible" css="{'_disabled': disabled}">
8+
<div visible="visible" css="{'_disabled': disabled}" class="page-builder-wysiwyg-wrapper">
99
<button if="wysiwygConfigData()['pagebuilder_button'] || wysiwygConfigData()['pagebuilder_content_snapshot']"
1010
type="button"
1111
class="action-default action"
@@ -23,7 +23,7 @@
2323
</div>
2424
</if>
2525
<div if="wysiwygConfigData()['pagebuilder_content_snapshot']"
26-
class="pagebuilder-stage-overlay"
26+
class="pagebuilder-wysiwyg-overlay"
2727
click="pageBuilderEditButtonClick.bind($data)"
2828
css="'active': !pageBuilder.isFullScreen()">
2929
</div>

0 commit comments

Comments
 (0)