From 7ed57d000be299a191007cb34490d6846a3d4572 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Thu, 4 Dec 2025 13:34:33 +0100 Subject: [PATCH] refactor: integrate StylesheetViewer into EditorPanel code tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move StylesheetViewer from standalone fixed panel to integrated component within EditorPanel's "code" tab. Maintains full functionality including: - Bidirectional sync with Pinia store and PagedJS preview - Toggle between read/edit modes - CSS syntax highlighting - Debounced updates Changes: - EditorPanel.vue: Import and render StylesheetViewer in code tab - EditorPanel.vue: Add flexbox layout for proper height management - StylesheetViewer.vue: Convert from fixed positioning to flex container - App.vue: Remove standalone StylesheetViewer component 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/App.vue | 21 +++++----- src/components/StylesheetViewer.vue | 19 ++++----- src/components/editor/EditorPanel.vue | 55 +++++++++++++++------------ 3 files changed, 49 insertions(+), 46 deletions(-) diff --git a/src/App.vue b/src/App.vue index b5d616a..89efbfc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,6 @@ @@ -71,8 +76,6 @@ onMounted(() => renderPreview(true)); - - @@ -80,8 +83,8 @@ onMounted(() => renderPreview(true)); #preview-frame { position: fixed; top: 0; - left: 250px; - width: calc(100% - 600px); + left: 0; + width: 100vw; height: 100vh; border: none; } diff --git a/src/components/StylesheetViewer.vue b/src/components/StylesheetViewer.vue index 5782ddc..012f251 100644 --- a/src/components/StylesheetViewer.vue +++ b/src/components/StylesheetViewer.vue @@ -1,5 +1,5 @@ -