Skip to content

Commit e9ca915

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

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

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

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,6 @@
3434
}
3535
}
3636

37-
.page-builder-stage-cover-div {
38-
position: absolute;
39-
display: block;
40-
left: 0;
41-
top: 0;
42-
width: 100%;
43-
height: 100%;
44-
z-index: 9999;
45-
46-
&.stage-full-screen {
47-
display: none;
48-
}
49-
}
50-
5137
.pagebuilder-stage-wrapper {
5238
-moz-transition: .35s ease-in-out;
5339
-webkit-transition: .35s ease-in-out;
@@ -153,6 +139,25 @@
153139
}
154140
}
155141

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;
158+
}
159+
}
160+
156161
.pagebuilder-wysiwyg-wrapper.pagebuilder-transition-out .pagebuilder-stage-wrapper {
157162
.pagebuilder-stage-wrapper.stage-full-screen;
158163

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/preview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/config.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface ContentSnapshotInterface
2828
}
2929

3030
export interface MenuSectionInterface {
31-
[pageBuilderId: string]: MenuSectionItemInterface;
31+
[key: string]: MenuSectionItemInterface;
3232
}
3333

3434
export interface MenuSectionItemInterface {

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default class Preview implements PreviewInterface {
201201

202202
optionsMenu.parent().addClass("pagebuilder-options-visible");
203203

204-
$(currentTarget).addClass("pagebuilder-c ontent-type-active");
204+
$(currentTarget).addClass("pagebuilder-content-type-active");
205205
}
206206

207207
/**

0 commit comments

Comments
 (0)