diff --git a/src/App.vue b/src/App.vue index fe1d9ce..6e51525 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,6 @@ import ElementPopup from './components/ElementPopup.vue'; import PreviewLoader from './components/PreviewLoader.vue'; import SaveButton from './components/SaveButton.vue'; import PrintButton from './components/PrintButton.vue'; -import ZoomControls from './components/ui/ZoomControls.vue'; import { onMounted, ref, computed, provide } from 'vue'; import { useStylesheetStore } from './stores/stylesheet'; import { useNarrativeStore } from './stores/narrative'; @@ -74,10 +73,6 @@ const { handleKeyboardShortcut, isMac } = useKeyboardShortcuts({ // Attach keyboard shortcut handler to renderer setKeyboardShortcutHandler(handleKeyboardShortcut); -// Zoom -const zoomControls = ref(null); -const zoomStyle = computed(() => zoomControls.value?.zoomStyle ?? {}); - // Lifecycle: Initialize app on mount onMounted(async () => { // Load narrative data (narrativeUrl constructed from location, always present) @@ -104,13 +99,11 @@ onMounted(async () => { ref="previewFrame1" class="preview-frame" :class="{ shifted: activeTab.length > 0 }" - :style="zoomStyle" > @@ -131,8 +124,6 @@ onMounted(async () => { --> - -
@@ -148,15 +139,17 @@ onMounted(async () => { width: 100vw; height: 100vh; border: none; - transform-origin: top center; + margin-left: 0; + transform: scale(1) translateY(0); + height: 100vh; + transition: all 0.2s ease-in-out var(--curve); } - -/* .preview-frame.shifted { +.preview-frame.shifted { margin-left: 17.55rem; transform: scale(0.65) translateY(-40vh); height: 155vh; -} */ +} .preview-frame:nth-of-type(1) { z-index: 1; @@ -171,7 +164,7 @@ onMounted(async () => { .print-btn { position: fixed; bottom: 2rem; - left: 2rem; + right: 2rem; width: 3.5rem; height: 3.5rem; border-radius: 50%; diff --git a/src/components/editor/PageSettings.vue b/src/components/editor/PageSettings.vue index beed919..ccefeaa 100644 --- a/src/components/editor/PageSettings.vue +++ b/src/components/editor/PageSettings.vue @@ -195,7 +195,7 @@ - -