|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div ref="contentEditorPopupRef">
|
|
|
- <div v-show="showPopup && contentEditorPopup.length" class="content-editor-popup popup" :style="{ top: `${top}px`, left: `${left}px` }">
|
|
|
+ <div v-show="showPopup && contentEditorPopup.length" class="content-editor-popup popup" :style="{ top: `${top}px`, left: `${left}px`, transform: `translateX(${!isMobileDevice && isOpen ? -130 : 0}px) translateY(5px)` }">
|
|
|
<template v-for="(item, index) in contentEditorPopup" :key="`${item.dataElement || new Date()}-${index}`">
|
|
|
<CustomButton v-if="item.name === 'customButton' && !item.hidden" :item="item" :data-element="item.dataElement" />
|
|
|
<Button v-else-if="item.type === 'copy' && !item.hidden" @click="handlePopup('copy')" :title="$t('documentEditor.copy')" :data-element="item.dataElement"><CopyText /></Button>
|
|
@@ -18,6 +18,7 @@ import core from '@/core'
|
|
|
|
|
|
import { useViewerStore } from '@/stores/modules/viewer'
|
|
|
import { useDocumentStore } from '@/stores/modules/document'
|
|
|
+import { isMobileDevice } from '@/helpers/device'
|
|
|
|
|
|
const useViewer = useViewerStore()
|
|
|
const useDocument = useDocumentStore()
|