fix
This commit is contained in:
1 parent
f6d707fc73
commit
4f24a6b859
1 file changed
+1
-1
@@ -1 +1 @@
|
|||||||
<!DOCTYPE html>
<html lang="zh-CN" data-bs-theme="auto">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DocuTranslate - 交互式文档翻译</title>
<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
<!-- Bootstrap CSS -->
<link href="/static/bootstrap.css" rel="stylesheet" crossorigin="anonymous">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="/static/bootstrap-icons.css">
<style>
/* 复用原版 CSS */
body { background-color: var(--bs-body-bg); }
button:focus { outline: none !important; box-shadow: none !important; }
.main-container { display: flex; flex-direction: column; height: 100vh; padding-top: 1rem; padding-bottom: 1rem; }
.settings-panel { height: calc(100vh - 2rem); overflow-y: auto; padding-right: 15px; }
.task-area { height: calc(100vh - 2rem); overflow-y: auto; }
.task-card { transition: all 0.3s ease-in-out; }
.log-area { height: 150px; background-color: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: .375rem; font-family: monospace; font-size: 0.8rem; padding: 10px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.log-area-wrapper { position: relative; }
.copy-log-btn { position: absolute; bottom: 5px; right: 5px; z-index: 10; opacity: 0.5; transition: all 0.2s ease-in-out; padding: 0.1rem 0.4rem; line-height: 1; }
.copy-log-btn:hover { opacity: 1; }
.file-drop-area { border: 2px dashed var(--bs-secondary-bg); border-radius: .375rem; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s ease-in-out; background-color: var(--bs-body-bg); }
.file-drop-area.drag-over { border-color: var(--bs-primary); background-color: var(--bs-secondary-bg); }
.file-drop-area.file-selected { border-style: solid; border-color: var(--bs-success); background-color: var(--bs-success-bg-subtle); }
.file-drop-area.input-error { border-color: var(--bs-danger); }
#previewOffcanvas { --bs-offcanvas-width: 95vw; max-width: 1600px; }
.preview-split-container { display: flex; flex-direction: row; height: 90%; }
.preview-pane-wrapper { display: flex; flex-direction: column; overflow: hidden; width: 100%; height: 100%; } /* 修改: 增加宽高100%以在单栏模式撑满 */
.preview-pane-wrapper .preview-pane { flex-grow: 1; border: 1px solid var(--bs-border-color); border-radius: .375rem; overflow: auto; position: relative; }
.gutter { background-color: var(--bs-tertiary-bg); background-repeat: no-repeat; background-position: 50%; }
.gutter.gutter-horizontal { cursor: col-resize; border-left: 1px solid var(--bs-border-color); border-right: 1px solid var(--bs-border-color); }
.gutter.gutter-vertical { cursor: row-resize; border-top: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color); }
.preview-pane iframe { width: 100%; height: 100%; border: none; }
.preview-pane pre { margin: 0; padding: 1rem; background-color: var(--bs-body-bg); white-space: pre; }
.bottom-left-controls { position: fixed; bottom: 1rem; left: 1rem; z-index: 1050; display: flex; gap: 0.5rem; }
.step-number { margin-right: 0.25rem; }
@media (max-width: 991.98px) {
.main-container { height: auto; padding-bottom: 6rem; }
.settings-panel, .task-area { height: auto; overflow-y: visible; }
.settings-panel { padding-right: 0; margin-bottom: 2rem; }
}
/* Vue Cloak to hide uncompiled templates */
[v-cloak] { display: none; }
</style>
</head>
<body>
<div id="app" v-cloak>
<div class="container-fluid main-container">
<div class="row gx-4">
<!-- Left: Settings Panel -->
<div class="col-lg-4">
<div class="settings-panel">
<div class="d-flex justify-content-between align-items-center mb-3">
<div class="d-flex align-items-center">
<h4 class="mb-0 me-3 fw-bold" :title="t('pageTitle')">DocuTranslate</h4>
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-info" data-bs-toggle="modal" data-bs-target="#tutorialModal">
<i class="bi bi-question-circle-fill me-1"></i><span>{{ t('tutorialBtn') }}</span>
</button>
<button type="button" class="btn btn-sm btn-outline-warning" data-bs-toggle="modal" data-bs-target="#contributorsModal">
<i class="bi bi-people-fill me-1"></i><span>{{ t('projectContributeBtn') }}</span>
</button>
</div>
</div>
</div>
Line truncated
|
<!DOCTYPE html>
<html lang="zh-CN" data-bs-theme="auto">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DocuTranslate - 交互式文档翻译</title>
<link rel="icon" href="/static/favicon.ico" type="image/x-icon">
<!-- Bootstrap CSS -->
<link href="/static/bootstrap.css" rel="stylesheet" crossorigin="anonymous">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="/static/bootstrap-icons.css">
<style>
/* 复用原版 CSS */
body { background-color: var(--bs-body-bg); }
button:focus { outline: none !important; box-shadow: none !important; }
.main-container { display: flex; flex-direction: column; height: 100vh; padding-top: 1rem; padding-bottom: 1rem; }
.settings-panel { height: calc(100vh - 2rem); overflow-y: auto; padding-right: 15px; }
.task-area { height: calc(100vh - 2rem); overflow-y: auto; }
.task-card { transition: all 0.3s ease-in-out; }
.log-area { height: 150px; background-color: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: .375rem; font-family: monospace; font-size: 0.8rem; padding: 10px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.log-area-wrapper { position: relative; }
.copy-log-btn { position: absolute; bottom: 5px; right: 5px; z-index: 10; opacity: 0.5; transition: all 0.2s ease-in-out; padding: 0.1rem 0.4rem; line-height: 1; }
.copy-log-btn:hover { opacity: 1; }
.file-drop-area { border: 2px dashed var(--bs-secondary-bg); border-radius: .375rem; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s ease-in-out; background-color: var(--bs-body-bg); }
.file-drop-area.drag-over { border-color: var(--bs-primary); background-color: var(--bs-secondary-bg); }
.file-drop-area.file-selected { border-style: solid; border-color: var(--bs-success); background-color: var(--bs-success-bg-subtle); }
.file-drop-area.input-error { border-color: var(--bs-danger); }
#previewOffcanvas { --bs-offcanvas-width: 95vw; max-width: 1600px; }
.preview-split-container { display: flex; flex-direction: row; height: 90%; }
.preview-pane-wrapper { display: flex; flex-direction: column; overflow: hidden; width: 100%; height: 100%; } /* 修改: 增加宽高100%以在单栏模式撑满 */
.preview-pane-wrapper .preview-pane { flex-grow: 1; border: 1px solid var(--bs-border-color); border-radius: .375rem; overflow: auto; position: relative; }
.gutter { background-color: var(--bs-tertiary-bg); background-repeat: no-repeat; background-position: 50%; }
.gutter.gutter-horizontal { cursor: col-resize; border-left: 1px solid var(--bs-border-color); border-right: 1px solid var(--bs-border-color); }
.gutter.gutter-vertical { cursor: row-resize; border-top: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color); }
.preview-pane iframe { width: 100%; height: 100%; border: none; }
.preview-pane pre { margin: 0; padding: 1rem; background-color: var(--bs-body-bg); white-space: pre; }
.bottom-left-controls { position: fixed; bottom: 1rem; left: 1rem; z-index: 1050; display: flex; gap: 0.5rem; }
.step-number { margin-right: 0.25rem; }
@media (max-width: 991.98px) {
.main-container { height: auto; padding-bottom: 6rem; }
.settings-panel, .task-area { height: auto; overflow-y: visible; }
.settings-panel { padding-right: 0; margin-bottom: 2rem; }
}
/* Vue Cloak to hide uncompiled templates */
[v-cloak] { display: none; }
</style>
</head>
<body>
<div id="app" v-cloak>
<div class="container-fluid main-container">
<div class="row gx-4">
<!-- Left: Settings Panel -->
<div class="col-lg-4">
<div class="settings-panel">
<div class="d-flex justify-content-between align-items-center mb-3">
<div class="d-flex align-items-center">
<h4 class="mb-0 me-3 fw-bold" :title="t('pageTitle')">DocuTranslate</h4>
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-info" data-bs-toggle="modal" data-bs-target="#tutorialModal">
<i class="bi bi-question-circle-fill me-1"></i><span>{{ t('tutorialBtn') }}</span>
</button>
<button type="button" class="btn btn-sm btn-outline-warning" data-bs-toggle="modal" data-bs-target="#contributorsModal">
<i class="bi bi-people-fill me-1"></i><span>{{ t('projectContributeBtn') }}</span>
</button>
</div>
</div>
</div>
Line truncated
|
||||||
Reference in new issue
Block a user