Spaces:
Sleeping
Sleeping
Benat Froemming-Aldanondo commited on
Commit Β·
b60ec01
1
Parent(s): df0cfe1
Update styles
Browse files
app.py
CHANGED
|
@@ -114,6 +114,7 @@ RULES:
|
|
| 114 |
- Only use names from the "Registered emojis" list. Never guess or invent names.
|
| 115 |
- Never refer to or describe an emoji in text (e.g. "here's a", "have this emoji"). \
|
| 116 |
Insert emoji only as a decorative inline addition to add meaning.
|
|
|
|
| 117 |
- When the user asks for a new emoji/sticker/icon, call the generate_emoji tool \
|
| 118 |
with a fitting name and description. Do not ask the user for the name or description.
|
| 119 |
- After the tool call your job is done β the system handles the follow-up flow.
|
|
|
|
| 114 |
- Only use names from the "Registered emojis" list. Never guess or invent names.
|
| 115 |
- Never refer to or describe an emoji in text (e.g. "here's a", "have this emoji"). \
|
| 116 |
Insert emoji only as a decorative inline addition to add meaning.
|
| 117 |
+
- Never reply with a single emoji.
|
| 118 |
- When the user asks for a new emoji/sticker/icon, call the generate_emoji tool \
|
| 119 |
with a fitting name and description. Do not ask the user for the name or description.
|
| 120 |
- After the tool call your job is done β the system handles the follow-up flow.
|
style.css
CHANGED
|
@@ -2,16 +2,26 @@
|
|
| 2 |
|
| 3 |
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
| 4 |
|
| 5 |
-
html, body
|
| 6 |
width: 100% !important;
|
| 7 |
height: 100vh !important;
|
| 8 |
margin: 0 !important;
|
| 9 |
padding: 0 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
}
|
| 11 |
|
| 12 |
.gradio-container > .main, .app > .main {
|
| 13 |
height: 100vh !important;
|
| 14 |
padding: 0 !important;
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
/* Hide all Gradio chrome we don't need */
|
|
@@ -62,6 +72,10 @@ footer, .svelte-1ipelgc, .built-with { display: none !important; }
|
|
| 62 |
font-size: 16px !important;
|
| 63 |
background: transparent !important;
|
| 64 |
border: none !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
}
|
| 66 |
#info-btn:hover {
|
| 67 |
background: transparent !important;
|
|
@@ -104,13 +118,15 @@ footer, .svelte-1ipelgc, .built-with { display: none !important; }
|
|
| 104 |
#info-close:hover { color: #f5f6fa; background: #252a38; }
|
| 105 |
|
| 106 |
#info-content {
|
| 107 |
-
color: #
|
| 108 |
font-size: 14px;
|
| 109 |
line-height: 1.6;
|
| 110 |
max-width: 600px;
|
| 111 |
margin: 0 auto;
|
| 112 |
padding-top: 40px;
|
| 113 |
}
|
|
|
|
|
|
|
| 114 |
#info-content h2 {
|
| 115 |
font-size: 20px;
|
| 116 |
font-weight: 600;
|
|
@@ -194,18 +210,20 @@ footer, .svelte-1ipelgc, .built-with { display: none !important; }
|
|
| 194 |
|
| 195 |
#top-row {
|
| 196 |
display: flex;
|
| 197 |
-
align-items: stretch;
|
| 198 |
gap: 6px;
|
| 199 |
width: 100%;
|
| 200 |
}
|
| 201 |
|
| 202 |
#top-row > div:has(#composer) {
|
| 203 |
-
flex:
|
| 204 |
min-width: 0;
|
| 205 |
}
|
| 206 |
|
| 207 |
#top-row > div:has(#emoji-pick-btn) {
|
| 208 |
-
flex: 0 0
|
|
|
|
|
|
|
| 209 |
margin: 0 !important;
|
| 210 |
padding: 0 !important;
|
| 211 |
}
|
|
@@ -269,13 +287,17 @@ footer, .svelte-1ipelgc, .built-with { display: none !important; }
|
|
| 269 |
}
|
| 270 |
.icon-btn:active { transform: scale(0.96); }
|
| 271 |
|
| 272 |
-
/* ββ Emoji button
|
| 273 |
#emoji-pick-btn {
|
| 274 |
-
width:
|
| 275 |
height: 100% !important;
|
| 276 |
min-height: 40px !important;
|
| 277 |
box-sizing: border-box !important;
|
| 278 |
font-size: 20px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 279 |
}
|
| 280 |
|
| 281 |
/* ββ Bottom send/clear row, 50/50 ββ */
|
|
|
|
| 2 |
|
| 3 |
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
| 4 |
|
| 5 |
+
html, body {
|
| 6 |
width: 100% !important;
|
| 7 |
height: 100vh !important;
|
| 8 |
margin: 0 !important;
|
| 9 |
padding: 0 !important;
|
| 10 |
+
background: #0c0e14 !important; /* dark fill outside the shell */
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
.gradio-container, #component-0, .app {
|
| 14 |
+
width: 100% !important;
|
| 15 |
+
height: 100vh !important;
|
| 16 |
+
margin: 0 !important;
|
| 17 |
+
padding: 0 !important;
|
| 18 |
+
background: #0c0e14 !important;
|
| 19 |
}
|
| 20 |
|
| 21 |
.gradio-container > .main, .app > .main {
|
| 22 |
height: 100vh !important;
|
| 23 |
padding: 0 !important;
|
| 24 |
+
background: #0c0e14 !important;
|
| 25 |
}
|
| 26 |
|
| 27 |
/* Hide all Gradio chrome we don't need */
|
|
|
|
| 72 |
font-size: 16px !important;
|
| 73 |
background: transparent !important;
|
| 74 |
border: none !important;
|
| 75 |
+
color: #f5f6fa !important; /* fix: was inheriting gray */
|
| 76 |
+
}
|
| 77 |
+
#info-btn svg {
|
| 78 |
+
stroke: #f5f6fa !important; /* fix: force white stroke on the SVG icon */
|
| 79 |
}
|
| 80 |
#info-btn:hover {
|
| 81 |
background: transparent !important;
|
|
|
|
| 118 |
#info-close:hover { color: #f5f6fa; background: #252a38; }
|
| 119 |
|
| 120 |
#info-content {
|
| 121 |
+
color: #f5f6fa !important; /* fix: was gray, now white */
|
| 122 |
font-size: 14px;
|
| 123 |
line-height: 1.6;
|
| 124 |
max-width: 600px;
|
| 125 |
margin: 0 auto;
|
| 126 |
padding-top: 40px;
|
| 127 |
}
|
| 128 |
+
/* Gradio Markdown renders into nested divs β cascade the color down */
|
| 129 |
+
#info-content * { color: inherit; }
|
| 130 |
#info-content h2 {
|
| 131 |
font-size: 20px;
|
| 132 |
font-weight: 600;
|
|
|
|
| 210 |
|
| 211 |
#top-row {
|
| 212 |
display: flex;
|
| 213 |
+
align-items: stretch; /* makes emoji button fill the composer height */
|
| 214 |
gap: 6px;
|
| 215 |
width: 100%;
|
| 216 |
}
|
| 217 |
|
| 218 |
#top-row > div:has(#composer) {
|
| 219 |
+
flex: 1 1 auto;
|
| 220 |
min-width: 0;
|
| 221 |
}
|
| 222 |
|
| 223 |
#top-row > div:has(#emoji-pick-btn) {
|
| 224 |
+
flex: 0 0 44px;
|
| 225 |
+
display: flex !important; /* fix: ensure the wrapper is also flex */
|
| 226 |
+
align-items: stretch !important;
|
| 227 |
margin: 0 !important;
|
| 228 |
padding: 0 !important;
|
| 229 |
}
|
|
|
|
| 287 |
}
|
| 288 |
.icon-btn:active { transform: scale(0.96); }
|
| 289 |
|
| 290 |
+
/* ββ Emoji button β fills the flex cell, icon perfectly centered ββ */
|
| 291 |
#emoji-pick-btn {
|
| 292 |
+
width: 44px !important;
|
| 293 |
height: 100% !important;
|
| 294 |
min-height: 40px !important;
|
| 295 |
box-sizing: border-box !important;
|
| 296 |
font-size: 20px !important;
|
| 297 |
+
line-height: 1 !important; /* fix: remove any inherited line-height offset */
|
| 298 |
+
display: flex !important;
|
| 299 |
+
align-items: center !important;
|
| 300 |
+
justify-content: center !important;
|
| 301 |
}
|
| 302 |
|
| 303 |
/* ββ Bottom send/clear row, 50/50 ββ */
|