refs #739: preserve Smilegate changes before repository layout migration
This commit is contained in:
@@ -46,6 +46,17 @@ def apply_console_theme(st: Any, profile: AppProfile) -> None:
|
||||
[data-testid="stJson"] code {{
|
||||
background:transparent !important; color:var(--console-text) !important;
|
||||
-webkit-text-fill-color:var(--console-text) !important; }}
|
||||
/* Baseline answers and generated SQL use Streamlit's separate code
|
||||
surface. Keep it readable when the browser prefers dark mode. */
|
||||
[data-testid="stCode"], [data-testid="stCode"] pre,
|
||||
[data-testid="stCode"] code, [data-testid="stCodeBlock"],
|
||||
[data-testid="stCodeBlock"] pre, [data-testid="stCodeBlock"] code {{
|
||||
background:#f8fafc !important; color:var(--console-text) !important;
|
||||
border-color:var(--console-border) !important; color-scheme:light !important;
|
||||
-webkit-text-fill-color:var(--console-text) !important; }}
|
||||
[data-testid="stCode"] *, [data-testid="stCodeBlock"] * {{
|
||||
color:var(--console-text) !important;
|
||||
-webkit-text-fill-color:var(--console-text) !important; }}
|
||||
/* Chat responses are rendered in a separate Streamlit surface. Without
|
||||
these rules a dark browser theme can leave the answer card dark while
|
||||
its Markdown keeps the light-theme text color. */
|
||||
|
||||
Reference in New Issue
Block a user