From d39cc7c9f41f75712446d3872ad72750c4799d91 Mon Sep 17 00:00:00 2001 From: xunbu Date: Tue, 15 Jul 2025 19:54:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E6=97=B6=E6=B2=A1=E6=9C=89=E9=87=8A=E6=94=BE?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docutranslate/static/index.html | 81 +++++++++++++++++---------------- 1 file changed, 43 insertions(+), 38 deletions(-) diff --git a/docutranslate/static/index.html b/docutranslate/static/index.html index e97aa28..ad79f85 100644 --- a/docutranslate/static/index.html +++ b/docutranslate/static/index.html @@ -39,7 +39,6 @@ transition: all 0.3s ease-in-out; } - /* === 修改点: 为等待ID的状态添加样式 === */ .task-id-placeholder { color: var(--bs-secondary-color); font-style: italic; @@ -122,7 +121,6 @@ overflow: auto; } - /* MODIFIED: Redefined gutter styles for both directions */ .gutter { background-color: var(--bs-tertiary-bg); background-repeat: no-repeat; @@ -163,39 +161,32 @@ z-index: 1050; } - /* === MODIFIED: Added Responsive Styles === */ - - /* Make the main layout responsive for mobile (stacks below lg breakpoint) */ @media (max-width: 991.98px) { .main-container { - height: auto; /* Allow natural page height */ - padding-bottom: 6rem; /* Add padding at the bottom for floating theme switch */ + height: auto; + padding-bottom: 6rem; } .settings-panel, .task-area { - height: auto; /* Remove fixed height to allow natural flow */ + height: auto; overflow-y: visible; } .settings-panel { - padding-right: 0; /* No scrollbar space needed */ - margin-bottom: 2rem; /* Add space when panels stack */ + padding-right: 0; + margin-bottom: 2rem; } } - /* Adjustments for smaller screens (tablets and phones) */ @media (max-width: 767.98px) { - /* Add space between file area and log area when they stack on mobile */ .task-card .col-md-7 { margin-top: 1.5rem; } - /* Make preview offcanvas full width on mobile */ #previewOffcanvas { --bs-offcanvas-width: 100vw; } } - @@ -432,7 +423,6 @@