From e42eeab437fed2cc0523896b6c7308c5590a1745 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Fri, 9 Jan 2026 16:30:18 +0100 Subject: [PATCH] feat: add scrollable CSS editor and complete stylesheet export Add two improvements to StylesheetViewer: 1. Scrollable CSS sections - Add max-height (500px) and overflow-y to custom CSS editor - Applies to both read-only and editable modes - Improves UX when content exceeds viewport 2. Complete stylesheet export button - Exports merged base CSS + custom CSS to single file - Filename format: -style.print.css - Includes informative comments: * Header with narrative title and download date * Section markers for base CSS and custom CSS - Full-width button below custom CSS section - Download via blob + automatic cleanup Export file structure: - Header comment (narrative info, date) - Base CSS section with comment - Custom CSS section with comment Co-Authored-By: Claude Sonnet 4.5 --- src/components/StylesheetViewer.vue | 101 ++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) diff --git a/src/components/StylesheetViewer.vue b/src/components/StylesheetViewer.vue index 77102f2..0aa8932 100644 --- a/src/components/StylesheetViewer.vue +++ b/src/components/StylesheetViewer.vue @@ -50,12 +50,21 @@ > + + +