From 8de1cfb6b587f237cbff9c6f7e2f012859e0dc17 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Tue, 10 Mar 2026 10:56:30 +0800 Subject: [PATCH] refactor(preview): simplify fullscreen handling and improve styling - Removed unnecessary fullscreen event listeners and streamlined the fullscreen toggle logic in the document preview component. - Updated the CSS for fullscreen mode to enhance layout and responsiveness for various document types, including images and presentations. - Adjusted the structure of the preview container to eliminate reliance on a ref, improving code clarity and maintainability. These changes enhance the user experience by providing a more intuitive fullscreen functionality and better visual presentation of documents. --- frontend/src/components/document-preview.vue | 85 +++++++++++++------- 1 file changed, 56 insertions(+), 29 deletions(-) diff --git a/frontend/src/components/document-preview.vue b/frontend/src/components/document-preview.vue index 760b4dfc..6ee28947 100644 --- a/frontend/src/components/document-preview.vue +++ b/frontend/src/components/document-preview.vue @@ -1,6 +1,6 @@ // @ts-nocheck