Spaces:
Sleeping
Sleeping
Fix double-border inputs, scrollable results table, and empty-state note rendering
Browse files
app.py
CHANGED
|
@@ -293,6 +293,17 @@ custom_css = """
|
|
| 293 |
font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
|
| 294 |
}
|
| 295 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 296 |
#shell {
|
| 297 |
max-width: 880px;
|
| 298 |
margin: 0 auto;
|
|
@@ -418,6 +429,8 @@ label span {
|
|
| 418 |
font-weight: 650 !important;
|
| 419 |
text-transform: uppercase;
|
| 420 |
letter-spacing: 0.03em;
|
|
|
|
|
|
|
| 421 |
}
|
| 422 |
|
| 423 |
textarea, input[type="text"] {
|
|
@@ -541,13 +554,24 @@ button.clear-button:hover {
|
|
| 541 |
line-height: 1.6;
|
| 542 |
}
|
| 543 |
|
|
|
|
|
|
|
| 544 |
.dataframe {
|
| 545 |
border-radius: var(--radius-md) !important;
|
| 546 |
-
overflow: hidden !important;
|
| 547 |
border: 1px solid var(--panel-border) !important;
|
| 548 |
font-size: 13.5px !important;
|
| 549 |
}
|
| 550 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 551 |
.dataframe th {
|
| 552 |
background: #0D1420 !important;
|
| 553 |
color: var(--text-secondary) !important;
|
|
@@ -555,10 +579,14 @@ button.clear-button:hover {
|
|
| 555 |
text-transform: uppercase;
|
| 556 |
letter-spacing: 0.03em;
|
| 557 |
font-weight: 700 !important;
|
|
|
|
|
|
|
| 558 |
}
|
| 559 |
|
| 560 |
.dataframe td {
|
| 561 |
color: #E2E8F0 !important;
|
|
|
|
|
|
|
| 562 |
}
|
| 563 |
|
| 564 |
/* ---------- FOOTER ---------- */
|
|
@@ -698,7 +726,7 @@ with gr.Blocks(
|
|
| 698 |
value="Ready."
|
| 699 |
)
|
| 700 |
|
| 701 |
-
summary = gr.
|
| 702 |
value="""
|
| 703 |
<div class="result-note">
|
| 704 |
Enter a source word above and click Search — results will appear here.
|
|
|
|
| 293 |
font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
|
| 294 |
}
|
| 295 |
|
| 296 |
+
/* Gradio wraps every component in its own bordered/background "block".
|
| 297 |
+
We already draw our own card + input borders, so strip the default
|
| 298 |
+
wrapper chrome everywhere to avoid double-boxing labels/inputs. */
|
| 299 |
+
.gradio-container .block,
|
| 300 |
+
.gradio-container .form {
|
| 301 |
+
background: transparent !important;
|
| 302 |
+
border: none !important;
|
| 303 |
+
box-shadow: none !important;
|
| 304 |
+
padding: 0 !important;
|
| 305 |
+
}
|
| 306 |
+
|
| 307 |
#shell {
|
| 308 |
max-width: 880px;
|
| 309 |
margin: 0 auto;
|
|
|
|
| 429 |
font-weight: 650 !important;
|
| 430 |
text-transform: uppercase;
|
| 431 |
letter-spacing: 0.03em;
|
| 432 |
+
display: inline-block;
|
| 433 |
+
margin-bottom: 6px;
|
| 434 |
}
|
| 435 |
|
| 436 |
textarea, input[type="text"] {
|
|
|
|
| 554 |
line-height: 1.6;
|
| 555 |
}
|
| 556 |
|
| 557 |
+
/* The table has 10 columns — it must scroll horizontally rather than
|
| 558 |
+
shrink, or headers wrap into unreadable fragments. */
|
| 559 |
.dataframe {
|
| 560 |
border-radius: var(--radius-md) !important;
|
|
|
|
| 561 |
border: 1px solid var(--panel-border) !important;
|
| 562 |
font-size: 13.5px !important;
|
| 563 |
}
|
| 564 |
|
| 565 |
+
.dataframe .table-wrap,
|
| 566 |
+
.dataframe [class*="scroll"] {
|
| 567 |
+
overflow-x: auto !important;
|
| 568 |
+
}
|
| 569 |
+
|
| 570 |
+
.dataframe table {
|
| 571 |
+
min-width: 1100px !important;
|
| 572 |
+
border-collapse: collapse !important;
|
| 573 |
+
}
|
| 574 |
+
|
| 575 |
.dataframe th {
|
| 576 |
background: #0D1420 !important;
|
| 577 |
color: var(--text-secondary) !important;
|
|
|
|
| 579 |
text-transform: uppercase;
|
| 580 |
letter-spacing: 0.03em;
|
| 581 |
font-weight: 700 !important;
|
| 582 |
+
white-space: nowrap !important;
|
| 583 |
+
padding: 10px 14px !important;
|
| 584 |
}
|
| 585 |
|
| 586 |
.dataframe td {
|
| 587 |
color: #E2E8F0 !important;
|
| 588 |
+
padding: 10px 14px !important;
|
| 589 |
+
max-width: 220px;
|
| 590 |
}
|
| 591 |
|
| 592 |
/* ---------- FOOTER ---------- */
|
|
|
|
| 726 |
value="Ready."
|
| 727 |
)
|
| 728 |
|
| 729 |
+
summary = gr.HTML(
|
| 730 |
value="""
|
| 731 |
<div class="result-note">
|
| 732 |
Enter a source word above and click Search — results will appear here.
|