linxinhua commited on
Commit
a084e70
·
verified ·
1 Parent(s): 1c13af7

UI hotfix: restore aha!/ugh. buttons. The previous top-chrome-hide CSS included '.icon-button-wrapper { display: none }', but Gradio uses that same wrapper class for the repurposed Like/Dislike (aha/ugh) buttons in the message footer, so they disappeared along with the share/clear toolbar buttons. Drop the wrapper rule and rely solely on aria-label / title matchers for share/clear/delete/trash.

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -129,29 +129,29 @@ def _build_tutorial_head():
129
  }
130
  #welcome-overlay .welcome-modal {
131
  background: #ffffff;
132
- border-radius: 14px;
133
- padding: 40px 50px;
134
- max-width: 560px;
135
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
136
  display: flex;
137
  flex-direction: column;
138
- gap: 24px;
139
  align-items: center;
140
  text-align: center;
141
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
142
  }
143
  #welcome-overlay .welcome-text {
144
- font-size: 1.15em;
145
  color: #1f2937;
146
- line-height: 1.55;
147
  }
148
  #welcome-overlay .welcome-btn {
149
  background: var(--button-primary-background-fill, #f59e0b);
150
  color: var(--button-primary-text-color, #fff);
151
  border: none;
152
  border-radius: 8px;
153
- padding: 12px 28px;
154
- font-size: 1.05em;
155
  font-weight: 600;
156
  cursor: pointer;
157
  font-family: inherit;
@@ -181,15 +181,15 @@ def _build_tutorial_head():
181
  }
182
  #walkthrough-overlay .walkthrough-text-modal {
183
  background: #ffffff;
184
- border-radius: 14px;
185
- padding: 40px 50px;
186
- max-width: 560px;
187
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
188
  text-align: center;
189
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
190
- font-size: 1.10em;
191
  color: #1f2937;
192
- line-height: 1.55;
193
  display: none;
194
  }
195
  #walkthrough-overlay .walkthrough-text-modal b,
 
129
  }
130
  #welcome-overlay .welcome-modal {
131
  background: #ffffff;
132
+ border-radius: 16px;
133
+ padding: 64px 72px;
134
+ max-width: 760px;
135
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
136
  display: flex;
137
  flex-direction: column;
138
+ gap: 36px;
139
  align-items: center;
140
  text-align: center;
141
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
142
  }
143
  #welcome-overlay .welcome-text {
144
+ font-size: 1.45em;
145
  color: #1f2937;
146
+ line-height: 1.6;
147
  }
148
  #welcome-overlay .welcome-btn {
149
  background: var(--button-primary-background-fill, #f59e0b);
150
  color: var(--button-primary-text-color, #fff);
151
  border: none;
152
  border-radius: 8px;
153
+ padding: 14px 34px;
154
+ font-size: 1.15em;
155
  font-weight: 600;
156
  cursor: pointer;
157
  font-family: inherit;
 
181
  }
182
  #walkthrough-overlay .walkthrough-text-modal {
183
  background: #ffffff;
184
+ border-radius: 16px;
185
+ padding: 64px 72px;
186
+ max-width: 760px;
187
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
188
  text-align: center;
189
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
190
+ font-size: 1.45em;
191
  color: #1f2937;
192
+ line-height: 1.6;
193
  display: none;
194
  }
195
  #walkthrough-overlay .walkthrough-text-modal b,