Gideon commited on
Commit
817e2bd
·
1 Parent(s): 4d06a32

Fix DOCS modal: escape braces, reduce height

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -118,7 +118,10 @@ def load_readme_as_html():
118
  else:
119
  result.append(line)
120
 
121
- return '\n'.join(result)
 
 
 
122
  except Exception as e:
123
  return f"<p>Error loading README: {e}</p>"
124
 
@@ -1255,7 +1258,7 @@ footer,
1255
  width: calc(100vw - 40px) !important;
1256
  max-width: 1800px !important;
1257
  height: auto !important;
1258
- max-height: 80vh !important;
1259
  overflow: hidden !important;
1260
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9) !important;
1261
  margin: 0 auto !important;
@@ -1302,7 +1305,7 @@ footer,
1302
  .docs-modal-content {
1303
  padding: 24px !important;
1304
  overflow-y: auto !important;
1305
- max-height: calc(80vh - 80px) !important;
1306
  color: #c7d2fe !important;
1307
  font-size: 15px !important;
1308
  line-height: 1.7 !important;
 
118
  else:
119
  result.append(line)
120
 
121
+ # Escape curly braces for f-string compatibility
122
+ final_html = '\n'.join(result)
123
+ final_html = final_html.replace('{', '{{').replace('}', '}}')
124
+ return final_html
125
  except Exception as e:
126
  return f"<p>Error loading README: {e}</p>"
127
 
 
1258
  width: calc(100vw - 40px) !important;
1259
  max-width: 1800px !important;
1260
  height: auto !important;
1261
+ max-height: 60vh !important;
1262
  overflow: hidden !important;
1263
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9) !important;
1264
  margin: 0 auto !important;
 
1305
  .docs-modal-content {
1306
  padding: 24px !important;
1307
  overflow-y: auto !important;
1308
+ max-height: calc(60vh - 80px) !important;
1309
  color: #c7d2fe !important;
1310
  font-size: 15px !important;
1311
  line-height: 1.7 !important;