From 1f0810bb28bf103fb10740b12c50bfbfc5b492e6 Mon Sep 17 00:00:00 2001 From: zj1123581321 Date: Sun, 11 Oct 2026 00:46:19 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=85=A8=E7=AB=99?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=97=A7=E4=BB=93=E5=BA=93=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E4=B8=BA=20zlxlabs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Executor: agy Agent-Model: gemini-3.8-flash-high Agent-Effort: unknown Dispatch-Id: dlg-20261010-163734-e743e7 Task-Id: VideoTranscriptAPI-20261011-01 --- src/video_transcript_api/api/routes/views.py | 4 ++-- src/web/static/index.html | 2 +- src/web/templates/base.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video_transcript_api/api/routes/views.py b/src/video_transcript_api/api/routes/views.py index 599673bb..beb1cd7e 100644 --- a/src/video_transcript_api/api/routes/views.py +++ b/src/video_transcript_api/api/routes/views.py @@ -179,9 +179,9 @@ async def sitemap_xml(): 📖 开发契机和玩法分享

diff --git a/src/web/static/index.html b/src/web/static/index.html index dd7d1a2d..c47013d1 100644 --- a/src/web/static/index.html +++ b/src/web/static/index.html @@ -410,7 +410,7 @@

📋 最近任务

diff --git a/src/web/templates/base.html b/src/web/templates/base.html index 55ef89f8..74487583 100644 --- a/src/web/templates/base.html +++ b/src/web/templates/base.html @@ -1069,7 +1069,7 @@

{{ title or "视频转录查看器" }}

{% block content %}{% endblock %} From 74a32462da4b73de7a2e51fb66e645b8ce15c106 Mon Sep 17 00:00:00 2001 From: zj1123581321 Date: Sun, 11 Oct 2026 00:48:46 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=9C=A8=20base.html=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=A1=B6=E9=83=A8=E5=BC=80=E6=BA=90=E7=BB=86=E6=9D=A1=E4=B8=8E?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Executor: agy Agent-Model: gemini-3.8-flash-high Agent-Effort: unknown Dispatch-Id: dlg-20261010-163734-e743e7 Task-Id: VideoTranscriptAPI-20261011-01 --- src/web/templates/base.html | 116 ++++++++++++++++++++++ tests/unit/web/test_oss_bar.py | 173 +++++++++++++++++++++++++++++++++ 2 files changed, 289 insertions(+) create mode 100644 tests/unit/web/test_oss_bar.py diff --git a/src/web/templates/base.html b/src/web/templates/base.html index 74487583..7c6cd011 100644 --- a/src/web/templates/base.html +++ b/src/web/templates/base.html @@ -861,6 +861,101 @@ text-decoration: underline; } + /* ========== 页面顶部开源信息细条 ========== */ + .oss-bar { + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + padding: 6px 16px; + font-size: 0.78rem; + line-height: 1.4; + color: var(--text-secondary); + background: var(--bg-secondary); + border-bottom: 1px solid var(--border-primary); + box-sizing: border-box; + transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; + } + + .oss-bar-desc { + display: inline-flex; + align-items: center; + } + + .oss-bar-desc-desktop { + display: inline; + } + + .oss-bar-desc-mobile { + display: none; + } + + .oss-bar-author-label { + display: inline; + } + + .oss-bar-sep { + opacity: 0.6; + user-select: none; + } + + .oss-bar-link { + display: inline-flex; + align-items: center; + gap: 4px; + color: var(--text-secondary); + text-decoration: none; + transition: color 0.2s ease; + } + + .oss-bar-link:hover { + color: var(--text-primary); + text-decoration: underline; + } + + .oss-bar-icon { + display: inline-block; + vertical-align: middle; + width: 14px; + height: 14px; + flex-shrink: 0; + } + + @media (max-width: 640px) { + .oss-bar { + padding: 0 10px; + gap: 6px; + font-size: 0.75rem; + white-space: nowrap; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + scrollbar-width: none; + } + + .oss-bar::-webkit-scrollbar { + display: none; + } + + .oss-bar-desc-desktop { + display: none; + } + + .oss-bar-desc-mobile { + display: inline; + } + + .oss-bar-author-label { + display: none; + } + + .oss-bar-link { + min-height: 32px; + display: inline-flex; + align-items: center; + padding: 0 4px; + } + } + /* ========== 导出链接折叠栏样式 ========== */ .export-links-details { padding: 0; @@ -1040,6 +1135,27 @@
+