Reduce the space between buttons
Browse files- src/display/css_html_js.py +107 -0
src/display/css_html_js.py
CHANGED
|
@@ -112,6 +112,113 @@ custom_css = """
|
|
| 112 |
font-size: 20px;
|
| 113 |
}
|
| 114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
#scale-logo {
|
| 116 |
border-style: none !important;
|
| 117 |
box-shadow: none;
|
|
|
|
| 112 |
font-size: 20px;
|
| 113 |
}
|
| 114 |
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
/* === FIX PER SPAZIATURA TAB - MINIMO SPAZIO === */
|
| 121 |
+
|
| 122 |
+
/* Elimina completamente lo spazio tra i bottoni dei tab */
|
| 123 |
+
.tab-nav {
|
| 124 |
+
gap: 0 !important;
|
| 125 |
+
margin: 0 !important;
|
| 126 |
+
padding: 0 !important;
|
| 127 |
+
display: flex !important;
|
| 128 |
+
flex-wrap: nowrap !important;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
/* Compatta al massimo i bottoni dei tab */
|
| 132 |
+
.tab-nav button {
|
| 133 |
+
margin: 0 !important;
|
| 134 |
+
padding: 4px 6px !important;
|
| 135 |
+
min-width: auto !important;
|
| 136 |
+
border: none !important; /* Rimuove il bordo tra i bottoni */
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
/* Rimuove la separazione fra il primo e l'ultimo bottone */
|
| 140 |
+
.tab-nav button:first-child {
|
| 141 |
+
border-left: none !important; /* Rimuove il bordo sinistro del primo bottone */
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
.tab-nav button:last-child {
|
| 145 |
+
border-right: none !important; /* Rimuove il bordo destro dell'ultimo bottone */
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
/* Per la classe specifica che usi */
|
| 149 |
+
.tab-buttons .tab-nav {
|
| 150 |
+
gap: 0 !important;
|
| 151 |
+
margin: 0 !important;
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
.tab-buttons .tab-nav button {
|
| 155 |
+
margin: 0 !important;
|
| 156 |
+
padding: 3px 5px !important;
|
| 157 |
+
border-radius: 0 !important;
|
| 158 |
+
font-size: 16px !important;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
/* Riduce spazio tra tab e contenuto */
|
| 162 |
+
.tabitem {
|
| 163 |
+
padding-top: 10px !important;
|
| 164 |
+
margin-top: 0 !important;
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
/* Compatta i container dei tab */
|
| 168 |
+
.tabs {
|
| 169 |
+
margin: 0 !important;
|
| 170 |
+
padding: 0 !important;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
/* Riduce altezza della barra dei tab */
|
| 174 |
+
.tab-nav {
|
| 175 |
+
min-height: auto !important;
|
| 176 |
+
height: auto !important;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
/* Per i separatori speciali (║ e │), rimuove visibilità senza separazione tra i tab */
|
| 180 |
+
.tab-nav button[data-tab="║"],
|
| 181 |
+
.tab-nav button[data-tab="│"] {
|
| 182 |
+
width: 0px !important; /* Rimuove la larghezza */
|
| 183 |
+
padding: 0 !important;
|
| 184 |
+
margin: 0 !important;
|
| 185 |
+
opacity: 0 !important; /* Rende invisibile */
|
| 186 |
+
pointer-events: none !important;
|
| 187 |
+
background: transparent !important;
|
| 188 |
+
border: none !important;
|
| 189 |
+
min-width: 0px !important;
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
/* Rimuovi spazi extra attorno ai container delle tab */
|
| 193 |
+
.gradio-tabs {
|
| 194 |
+
margin: 0 !important;
|
| 195 |
+
padding: 0 !important;
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
/* Compatta ulteriormente se necessario */
|
| 199 |
+
.tab-buttons {
|
| 200 |
+
margin: 0 !important;
|
| 201 |
+
padding: 0 !important;
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
/* Allinea meglio i tab con icone e testo */
|
| 205 |
+
.tab-nav button span {
|
| 206 |
+
white-space: nowrap !important;
|
| 207 |
+
display: inline-flex !important;
|
| 208 |
+
align-items: center !important;
|
| 209 |
+
gap: 4px !important;
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
/* ========================================================== */
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
|
| 222 |
#scale-logo {
|
| 223 |
border-style: none !important;
|
| 224 |
box-shadow: none;
|