Skip to content

Commit c73ccca

Browse files
committed
#514: User sees content snapshot on Category Page in Admin Panel - Add clickable overlay
1 parent aa71a04 commit c73ccca

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,25 @@
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-8;
158+
}
159+
}
160+
142161
.pagebuilder-wysiwyg-wrapper.pagebuilder-transition-out .pagebuilder-stage-wrapper {
143162
.pagebuilder-stage-wrapper.stage-full-screen;
144163

app/code/Magento/PageBuilder/view/adminhtml/web/template/page-builder.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<div class="pagebuilder-stage-wrapper"
88
css="'stage-full-screen': isFullScreen"
99
ko-style="wrapperStyles">
10+
<div class="pagebuilder-stage-overlay"
11+
click="function() { toggleFullScreen($element); }"
12+
css="'active': !isFullScreen()">
13+
</div>
1014
<div class="admin__field pagebuilder-header" css="visible: panel.isVisible">
1115
<button type="button" translate="'Apply Template'" if="isAllowedTemplateApply" click="toggleTemplateManger"/>
1216
<button type="button" translate="'Save as Template'" if="isAllowedTemplateSave" click="saveAsTemplate"/>

0 commit comments

Comments
 (0)