mimbres commited on
Commit
13c3ee6
1 Parent(s): 54a87e4

Update html_helper.py

Browse files
Files changed (1) hide show
  1. html_helper.py +2 -2
html_helper.py CHANGED
@@ -50,7 +50,7 @@ def create_html_from_midi(midifile):
50
  border-radius: 0 0 8px 8px;
51
  border: 1px solid #A0A0A0;
52
  margin: 4px;
53
- margin-top: 2;
54
  overflow: auto;
55
  transform-origin: top;
56
  transform: scaleY(0.8); /* Added scaleY */
@@ -105,7 +105,7 @@ def create_html_from_midi(midifile):
105
  </html>
106
  """.format(midifile=midifile)
107
  html = f"""<div style="display: flex; justify-content: center; align-items: center;">
108
- <iframe style="width: 100%; height: 500px; overflow:auto" srcdoc='{html_template}'></iframe>
109
  </div>"""
110
  return html
111
 
 
50
  border-radius: 0 0 8px 8px;
51
  border: 1px solid #A0A0A0;
52
  margin: 4px;
53
+ margin-top: 1;
54
  overflow: auto;
55
  transform-origin: top;
56
  transform: scaleY(0.8); /* Added scaleY */
 
105
  </html>
106
  """.format(midifile=midifile)
107
  html = f"""<div style="display: flex; justify-content: center; align-items: center;">
108
+ <iframe style="width: 100%; height: 500px; overflow:hidden" srcdoc='{html_template}'></iframe>
109
  </div>"""
110
  return html
111