jdesiree commited on
Commit
16f2773
·
verified ·
1 Parent(s): 70a0b5d

Correcting Space Issue

Browse files

Gradio's default CSS was applied to three scripts in the app.py, causing an odd spacing issue. I added CSS targeting the classes of these elements from the HTML in the developer tools.

Files changed (1) hide show
  1. app.py +24 -1
app.py CHANGED
@@ -227,9 +227,32 @@ custom_css = """
227
  /* Import Oswald font - Google Fonts */
228
  @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
229
 
230
- /* HIDE the HTML components */
231
  #component-1, #component-2, #component-3 {
232
  display: none !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
  }
234
 
235
  /* Hide any block containers with auto-margin that might be causing spacing */
 
227
  /* Import Oswald font - Google Fonts */
228
  @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
229
 
230
+ /* HIDE the HTML components that create scrollbars */
231
  #component-1, #component-2, #component-3 {
232
  display: none !important;
233
+ height: 0 !important;
234
+ min-height: 0 !important;
235
+ padding: 0 !important;
236
+ margin: 0 !important;
237
+ visibility: hidden !important;
238
+ }
239
+
240
+ /* Hide any HTML container wrappers that might be creating space */
241
+ .html-container.svelte-phx28p.padding {
242
+ display: none !important;
243
+ height: 0 !important;
244
+ min-height: 0 !important;
245
+ padding: 0 !important;
246
+ margin: 0 !important;
247
+ }
248
+
249
+ /* Hide prose containers that wrap HTML elements */
250
+ .prose.svelte-ydeks8 {
251
+ display: none !important;
252
+ height: 0 !important;
253
+ min-height: 0 !important;
254
+ padding: 0 !important;
255
+ margin: 0 !important;
256
  }
257
 
258
  /* Hide any block containers with auto-margin that might be causing spacing */