refs #703: fix MCP detail contrast

This commit is contained in:
devmrko
2026-07-22 16:26:44 +09:00
parent 90d76f1033
commit a91ad3c364

View File

@@ -33,6 +33,17 @@ def apply_console_theme(st: Any, profile: AppProfile) -> None:
input, textarea, [data-baseweb="select"] > div, [data-testid="stSidebar"] button {{ input, textarea, [data-baseweb="select"] > div, [data-testid="stSidebar"] button {{
background:#fff !important; border:1px solid var(--console-border) !important; background:#fff !important; border:1px solid var(--console-border) !important;
border-radius:4px !important; box-shadow:none !important; }} border-radius:4px !important; box-shadow:none !important; }}
/* Streamlit JSON uses an independently styled code surface. Keep the
MCP detail payload readable even when the browser/system prefers a
dark code theme. */
[data-testid="stJson"], [data-testid="stJson"] > div,
[data-testid="stJson"] .react-json-view, [data-testid="stJson"] pre {{
background:#f8fafc !important; color:var(--console-text) !important;
border-color:var(--console-border) !important; color-scheme:light !important; }}
[data-testid="stJson"] *, [data-testid="stJson"] pre *,
[data-testid="stJson"] code {{
background:transparent !important; color:var(--console-text) !important;
-webkit-text-fill-color:var(--console-text) !important; }}
div[data-testid="stButton"] > button, div[data-testid="stFormSubmitButton"] > button {{ div[data-testid="stButton"] > button, div[data-testid="stFormSubmitButton"] > button {{
border-radius:4px !important; box-shadow:none !important; }} border-radius:4px !important; box-shadow:none !important; }}
div[data-testid="stButton"] > button[kind="primary"], div[data-testid="stButton"] > button[kind="primary"],