ZhouChuYue
commited on
Commit
·
06c7a0f
1
Parent(s):
2b0def0
fix: layout width and output box height visibility issues
Browse files
app.py
CHANGED
|
@@ -226,7 +226,7 @@ body {
|
|
| 226 |
.gradio-container {
|
| 227 |
font-family: 'Inter', sans-serif !important;
|
| 228 |
background: radial-gradient(circle at top left, #1e1b4b, #0f172a) !important;
|
| 229 |
-
max-width:
|
| 230 |
}
|
| 231 |
|
| 232 |
/* Force all text to be light by default to combat Gradio's light theme defaults */
|
|
@@ -234,7 +234,35 @@ body {
|
|
| 234 |
color: var(--text-light);
|
| 235 |
}
|
| 236 |
|
| 237 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
.main-title {
|
| 239 |
font-family: 'Inter', sans-serif !important;
|
| 240 |
font-weight: 800 !important;
|
|
@@ -503,6 +531,7 @@ with gr.Blocks(title="UltraData Math Parser", css=custom_css, theme=gr.themes.So
|
|
| 503 |
with gr.Tabs():
|
| 504 |
with gr.TabItem("✨ Markdown"):
|
| 505 |
markdown_output = gr.Markdown(
|
|
|
|
| 506 |
label="Markdown Preview",
|
| 507 |
elem_classes=["markdown-box"],
|
| 508 |
latex_delimiters=[
|
|
|
|
| 226 |
.gradio-container {
|
| 227 |
font-family: 'Inter', sans-serif !important;
|
| 228 |
background: radial-gradient(circle at top left, #1e1b4b, #0f172a) !important;
|
| 229 |
+
max-width: 95% !important; /* Increased width for better split view */
|
| 230 |
}
|
| 231 |
|
| 232 |
/* Force all text to be light by default to combat Gradio's light theme defaults */
|
|
|
|
| 234 |
color: var(--text-light);
|
| 235 |
}
|
| 236 |
|
| 237 |
+
/* ... (keep existing styles) ... */
|
| 238 |
+
|
| 239 |
+
/* Output Box Styling - Fixed Height */
|
| 240 |
+
.output-textbox, .markdown-box {
|
| 241 |
+
height: 600px !important;
|
| 242 |
+
max-height: 600px !important;
|
| 243 |
+
overflow-y: auto !important;
|
| 244 |
+
background-color: #1e293b !important;
|
| 245 |
+
border: 1px solid #64748b !important;
|
| 246 |
+
border-radius: 8px !important;
|
| 247 |
+
padding: 1rem !important;
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
.output-textbox textarea {
|
| 251 |
+
background-color: transparent !important;
|
| 252 |
+
border: none !important;
|
| 253 |
+
box-shadow: none !important;
|
| 254 |
+
height: 100% !important;
|
| 255 |
+
color: #ffffff !important;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
.markdown-box {
|
| 259 |
+
background-color: #f8fafc !important; /* Light background for markdown readability */
|
| 260 |
+
color: #0f172a !important; /* Dark text for markdown */
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
.markdown-box * {
|
| 264 |
+
color: #0f172a !important;
|
| 265 |
+
}
|
| 266 |
.main-title {
|
| 267 |
font-family: 'Inter', sans-serif !important;
|
| 268 |
font-weight: 800 !important;
|
|
|
|
| 531 |
with gr.Tabs():
|
| 532 |
with gr.TabItem("✨ Markdown"):
|
| 533 |
markdown_output = gr.Markdown(
|
| 534 |
+
value="### Output will appear here...",
|
| 535 |
label="Markdown Preview",
|
| 536 |
elem_classes=["markdown-box"],
|
| 537 |
latex_delimiters=[
|