antoineedy commited on
Commit
190f02e
·
verified ·
1 Parent(s): b88e08e

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -105,21 +105,16 @@ def main():
105
  overflow: visible !important;
106
  text-overflow: clip !important;
107
  line-height: 1.2 !important;
108
- word-wrap: break-word !important;
 
109
  }
110
 
111
  /* 2. Set a fixed width and center alignment for headers and data cells from the 3rd column onwards */
112
  #pipeline-table table th:nth-child(n+3),
113
  #pipeline-table table td:nth-child(n+3) {
114
- min-width: 80px !important;
115
  max-width: 120px !important;
116
  }
117
-
118
- /* 3. Ensure nested elements in data cells also center properly */
119
- #pipeline-table table td:nth-child(n+3) * {
120
- text-align: center !important;
121
- justify-content: center !important;
122
- }
123
  """
124
 
125
  with gr.Blocks(css=css) as block:
 
105
  overflow: visible !important;
106
  text-overflow: clip !important;
107
  line-height: 1.2 !important;
108
+ word-break: normal !important; /* Prevents breaking in the middle of words */
109
+ overflow-wrap: normal !important; /* Prevents breaking in the middle of words */
110
  }
111
 
112
  /* 2. Set a fixed width and center alignment for headers and data cells from the 3rd column onwards */
113
  #pipeline-table table th:nth-child(n+3),
114
  #pipeline-table table td:nth-child(n+3) {
115
+ min-width: 100px !important; /* Just wide enough to fit long words like "Pharmaceuticals" */
116
  max-width: 120px !important;
117
  }
 
 
 
 
 
 
118
  """
119
 
120
  with gr.Blocks(css=css) as block: