Commit ·
48d0150
1
Parent(s): 07173d5
Slider: flatten the number-input pill (no border) and hide the redundant reset button
Browse files
app.py
CHANGED
|
@@ -683,6 +683,29 @@ gradio-app > div {
|
|
| 683 |
border-radius: var(--q-radius-md) !important;
|
| 684 |
min-height: 46px !important;
|
| 685 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 686 |
[class*="gradio-container"] input[type="range"] {
|
| 687 |
-webkit-appearance: none;
|
| 688 |
appearance: none;
|
|
|
|
| 683 |
border-radius: var(--q-radius-md) !important;
|
| 684 |
min-height: 46px !important;
|
| 685 |
}
|
| 686 |
+
|
| 687 |
+
/* Slider head input (the "[6 ↺]" / "[1 ↺]" pill next to the slider track):
|
| 688 |
+
the global input rule paints a 1px border on it, which looks like a stray
|
| 689 |
+
rectangle. Flatten it AND hide the reset button (it's redundant — the
|
| 690 |
+
slider's range already shows the default value). */
|
| 691 |
+
#quest-max-turns input[type="number"],
|
| 692 |
+
#quest-temperature input[type="number"] {
|
| 693 |
+
border: 0 !important;
|
| 694 |
+
background: transparent !important;
|
| 695 |
+
box-shadow: none !important;
|
| 696 |
+
border-radius: 0 !important;
|
| 697 |
+
padding: 0 !important;
|
| 698 |
+
min-height: 0 !important;
|
| 699 |
+
height: auto !important;
|
| 700 |
+
text-align: right !important;
|
| 701 |
+
width: 3.5em !important;
|
| 702 |
+
font-weight: 600 !important;
|
| 703 |
+
color: var(--q-text) !important;
|
| 704 |
+
}
|
| 705 |
+
#quest-max-turns button,
|
| 706 |
+
#quest-temperature button {
|
| 707 |
+
display: none !important;
|
| 708 |
+
}
|
| 709 |
[class*="gradio-container"] input[type="range"] {
|
| 710 |
-webkit-appearance: none;
|
| 711 |
appearance: none;
|