From c9d19538da3a8955a11f470af4837e7a042f4a38 Mon Sep 17 00:00:00 2001 From: Hugo H Date: Wed, 31 Dec 2025 18:47:41 +0100 Subject: [PATCH] Added collapse code editor button --- index.html | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/index.html b/index.html index e6c4b13..ff59b20 100644 --- a/index.html +++ b/index.html @@ -119,6 +119,13 @@ flex-direction: column; background-color: var(--bg-editor); border-right: 2px solid #333; + transition: width 0.3s ease, transform 0.3s ease; + } + + #editor-container.collapsed { + width: 0; + transform: translateX(-100%); + border-right: none; } #editor { @@ -136,6 +143,11 @@ align-items: center; justify-content: center; overflow: hidden; + transition: width 0.3s ease; + } + + #preview-container.full-width { + width: 100%; } canvas { @@ -286,6 +298,11 @@ +