Skip to content

Commit 5149bf5

Browse files
committed
fix: content builder sidebars placement
1 parent 2a064c2 commit 5149bf5

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

frontend/express/public/javascripts/countly/vue/components/content.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
data: function() {
196196
return {
197197
toggleTransition: 'stdt-slide-left',
198-
isLeftSidebarHidden: this.hideLeftSidebar,
198+
isCollapsed: false,
199199
scrollOps: {
200200
vuescroll: {},
201201
scrollPanel: {
@@ -220,7 +220,7 @@
220220
methods: {
221221
collapseBar: function(position) {
222222
if (position === 'left') {
223-
this.isLeftSidebarHidden = !this.isLeftSidebarHidden;
223+
this.isCollapsed = !this.isCollapsed;
224224
}
225225
},
226226
onViewEntered: function() { //?

frontend/express/public/javascripts/countly/vue/templates/content/content-body.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<div class="cly-vue-content-builder__layout-main__body" :class="{ 'bu-is-justify-content-flex-end': isLeftSidebarHidden, 'bu-is-justify-content-flex-start': hideRightSidebar, 'cly-vue-content-builder__layout-main__body__dashed-bg': hasDashedBackground }" :style="{'background-color': backgroundColor}">
1+
<div class="cly-vue-content-builder__layout-main__body" :class="{ 'bu-is-justify-content-flex-end': hideLeftSidebar, 'bu-is-justify-content-flex-start': hideRightSidebar, 'cly-vue-content-builder__layout-main__body__dashed-bg': hasDashedBackground }" :style="{'background-color': backgroundColor}">
22
<transition :name="toggleTransition" @enter="onViewEntered">
3-
<div v-if="!isLeftSidebarHidden" class="cly-vue-content-builder__layout-main__body__left-sidebar">
3+
<div v-if="!hideLeftSidebar && (collapsible && !isCollapsed)" class="cly-vue-content-builder__layout-main__body__left-sidebar">
44
<div class="cly-vue-content-builder__layout-main__body__left-sidebar__header">
55
<div class="cly-vue-content-builder__layout-main__body__left-sidebar__header__title">
66
<h4>Screens</h4>
@@ -22,7 +22,14 @@ <h4>Screens</h4>
2222
</div>
2323
</div>
2424
</transition>
25-
<slot name="content-layout-body"></slot>
25+
<!-- <component
26+
v-if="currentTabComponent"
27+
:is="currentTabComponent"
28+
v-bind="currentTabProps"
29+
class="cly-vue-content-builder__layout-main__body__content">
30+
</component> -->
31+
<slot name="content-layout-body">
32+
</slot>
2633
<div v-if="!hideRightSidebar" class="cly-vue-content-builder__layout-main__body__right-sidebar" :style="{ 'width': this.rightSidebarWidth + 'px !important'}">
2734
<vue-scroll :ops="scrollOps">
2835
<slot name="content-layout-right-sidebar"></slot>

0 commit comments

Comments
 (0)