@myissue/vue-website-page-builder 3.3.47 → 3.3.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myissue/vue-website-page-builder",
3
- "version": "3.3.47",
3
+ "version": "3.3.49",
4
4
  "description": "Vue 3 page builder component with drag & drop functionality.",
5
5
  "type": "module",
6
6
  "main": "./dist/vue-website-page-builder.umd.cjs",
@@ -369,7 +369,7 @@ onMounted(async () => {
369
369
 
370
370
  <template>
371
371
  <div
372
- class="pbx-font-sans pbx-max-w-full pbx-m-1 pbx-border-solid pbx-border pbx-border-gray-400 pbx-inset-x-0 pbx-z-10 pbx-bg-white pbx-overflow-x-auto pbx-h-full"
372
+ class="pbx-font-sans pbx-max-w-full pbx-border-solid pbx-border pbx-border-gray-400 pbx-inset-x-0 pbx-z-10 pbx-bg-white pbx-overflow-x-auto pbx-h-full"
373
373
  >
374
374
  <GlobalLoader v-if="getIsLoadingGlobal & !openAppNotStartedModal"></GlobalLoader>
375
375
  <ModalBuilder
@@ -409,7 +409,7 @@ onMounted(async () => {
409
409
  @closeMainModalBuilder="firstPageBuilderPreviewModalButtonMobile"
410
410
  maxWidth="lg"
411
411
  >
412
- <Preview />
412
+ <Preview :mobile="true" />
413
413
  </ModalBuilder>
414
414
 
415
415
  <DynamicModalBuilder
@@ -538,7 +538,7 @@ onMounted(async () => {
538
538
  "
539
539
  >
540
540
  <button
541
- class="pbx-mySecondaryButton pbx-h-6 pbx-flex pbx-gap-2"
541
+ class="pbx-mySecondaryButton pbx-h-6 pbx-flex pbx-gap-2 lg:mr-2"
542
542
  @click.stop="
543
543
  async () => {
544
544
  await pageBuilderService.clearHtmlSelection()
@@ -602,7 +602,7 @@ onMounted(async () => {
602
602
  "
603
603
  >
604
604
  <div
605
- class="pbx-flex pbx-items-center pbx-justify-center pbx-gap-2 pbx-border-0 pbx-border-solid pbx-border-r pbx-border-gray-200 pbx-pr-2"
605
+ class="pbx-flex pbx-items-center pbx-justify-center pbx-gap-2 pbx-border-0 pbx-border-solid pbx-border-r pbx-border-gray-200 lg:pbx-pr-6"
606
606
  >
607
607
  <span class="lg:pbx-block pbx-hidden">
608
608
  <div class="pbx-whitespace-nowrap pbx-cursor-pointer">Add new Components</div>
@@ -809,7 +809,7 @@ onMounted(async () => {
809
809
  'pbx-w-0': !getMenuRight,
810
810
  'pbx-w-80 pbx-mr-2 pbx-bg-myPrimaryLightGrayColor pbx-items-stretch': getMenuRight,
811
811
  }"
812
- class="pbx-duration-300 pbx-z-20 pbx-flex-shrink-0 pbx-overflow-hidden pbx-shadow-sm pbx-rounded-l-2xl"
812
+ class="pbx-duration-300 pbx-z-20 pbx-flex-shrink-0 pbx-overflow-hidden pbx-shadow-sm pbx-rounded-l-2xl pbx-h-[100vh]"
813
813
  >
814
814
  <RightSidebarEditor @closeEditor="pageBuilderStateStore.setMenuRight(false)">
815
815
  </RightSidebarEditor>
@@ -1,6 +1,12 @@
1
1
  <script setup>
2
2
  import { ref } from 'vue'
3
3
 
4
+ defineProps({
5
+ mobile: {
6
+ type: Boolean,
7
+ },
8
+ })
9
+
4
10
  const htmlPage = ref('')
5
11
 
6
12
  const previewData = localStorage.getItem('preview')
@@ -19,13 +25,26 @@ if (previewData) {
19
25
  </script>
20
26
 
21
27
  <template>
22
- <div>
23
- <div
24
- class="pbx-text-black pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"
25
- >
26
- <div id="page-builder-editor">
27
- <div class="" v-html="htmlPage"></div>
28
+ <template v-if="!mobile">
29
+ <div>
30
+ <div
31
+ class="pbx-text-black pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"
32
+ >
33
+ <div id="page-builder-editor">
34
+ <div class="" v-html="htmlPage"></div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </template>
39
+ <template v-if="mobile">
40
+ <div>
41
+ <div
42
+ class="pbx-text-black pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"
43
+ >
44
+ <div id="page-builder-editor">
45
+ <div class="" v-html="htmlPage"></div>
46
+ </div>
28
47
  </div>
29
48
  </div>
30
- </div>
49
+ </template>
31
50
  </template>
package/src/css/app.css CHANGED
@@ -420,7 +420,6 @@
420
420
  width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
421
421
  height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
422
422
  border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1);
423
- overflow: hidden;
424
423
  }
425
424
 
426
425
  #editToolbar.is-visible {