Spaces:
Sleeping
Sleeping
語料說明表單:欄位標籤對比度過低、兩張表格未撐滿容器
Browse files千卉截圖指出兩點,實測數據:
- 「原文標題/作者/語言/出版年/版本」等欄位標籤在深色模式吃到 Gradio 自己
的樣式,實測 #475569、對比僅 2.40:1(AA 標準 4.5),跟旁邊表格表頭「群組
標籤」(#94a3b8、6.92:1)落差明顯。統一成 --c-text-muted,實測 7.11:1
- 群組層/個體層兩張表格沒撐滿:容器內寬 1069,表格只有 1051,右側空 18px
(已排除捲軸因素——實測無垂直捲軸)。Gradio dataframe 的 table 寬度依內容
計算,補 width:100%,實測缺口降到 2px(僅剩邊框)
兩條規則都限縮在 #metadata_zone,不影響結果頁那些需要水平捲動的寬表格。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- app_agent.py +10 -0
app_agent.py
CHANGED
|
@@ -3244,6 +3244,16 @@ img.button-icon { opacity: .82; }
|
|
| 3244 |
animation: popupIn .25s cubic-bezier(.2,.8,.3,1) !important;
|
| 3245 |
}
|
| 3246 |
.metadata-zone .gr-box, .metadata-zone .form { background: transparent !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3247 |
/* Phase 8-C:結果內容區塊(語言指標分析/統計比較分析/LLM輔助分析),
|
| 3248 |
從原本的 gr.Tab()(自帶 .tabitem padding)改成 gr.Column,這裡補上
|
| 3249 |
跟上面 upload-zone/metadata-zone 一致的垂直間距,避免緊貼在一起 */
|
|
|
|
| 3244 |
animation: popupIn .25s cubic-bezier(.2,.8,.3,1) !important;
|
| 3245 |
}
|
| 3246 |
.metadata-zone .gr-box, .metadata-zone .form { background: transparent !important; }
|
| 3247 |
+
/* 2026-07-24 千卉:①「原文標題/作者/語言…」這些欄位標籤在深色模式吃到
|
| 3248 |
+
Gradio 自己的樣式(實測 #475569,對比只有 2.40:1,遠低於 AA 4.5),跟旁邊
|
| 3249 |
+
表格表頭「群組標籤」(--c-text-muted #94a3b8、6.92:1)落差很大。統一成
|
| 3250 |
+
--c-text-muted。②兩張表格沒撐滿容器(容器內寬 1069、表格只有 1051,右側
|
| 3251 |
+
空 18px),Gradio dataframe 的 table 寬度是依內容算的,補 width:100%。 */
|
| 3252 |
+
#metadata_zone .container > span,
|
| 3253 |
+
#metadata_zone label > span {
|
| 3254 |
+
color: var(--c-text-muted) !important;
|
| 3255 |
+
}
|
| 3256 |
+
#metadata_zone table { width: 100% !important; }
|
| 3257 |
/* Phase 8-C:結果內容區塊(語言指標分析/統計比較分析/LLM輔助分析),
|
| 3258 |
從原本的 gr.Tab()(自帶 .tabitem padding)改成 gr.Column,這裡補上
|
| 3259 |
跟上面 upload-zone/metadata-zone 一致的垂直間距,避免緊貼在一起 */
|