Skip to content

Commit 8517303

Browse files
authored
Merge branch 'main' into user_feedback_cleanup
2 parents 06ecc64 + ec5ddc3 commit 8517303

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

aviary/visualization/dashboard.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121

2222
# Constants - # Can't get using CSS to work with frames and the raw_css for the template so going with
2323
# this for now
24-
iframe_css = (
25-
"width=100% height=4000vh overflow=hidden margin=0px padding=0px border=none"
26-
)
27-
aviary_variables_json_file_name = "aviary_vars.json"
24+
aviary_variables_json_file_name = 'aviary_vars.json'
2825

2926

3027
def _dashboard_setup_parser(parser):
@@ -111,11 +108,11 @@ def create_report_frame(format, text_filepath):
111108
does not exist.
112109
"""
113110
if os.path.exists(text_filepath):
114-
if format == "html":
111+
if format == 'html':
112+
iframe_css = 'width=1200px height=800px overflow-x="scroll" overflow="scroll" margin=0px padding=0px border=20px frameBorder=20px scrolling="yes"'
115113
report_pane = pn.pane.HTML(
116-
f"<iframe {iframe_css} src=/home/{text_filepath}></iframe>"
117-
)
118-
elif format in ["markdown", "text"]:
114+
f'<iframe {iframe_css} src=/home/{text_filepath}></iframe>')
115+
elif format in ['markdown', 'text']:
119116
with open(text_filepath, "rb") as f:
120117
file_text = f.read()
121118
# need to deal with some encoding errors
@@ -313,7 +310,6 @@ def dashboard(script_name, problem_recorder, driver_recorder, port):
313310
)
314311

315312
# TODO - use lists and functions to do this with a lot less code
316-
317313
####### Model Tab #######
318314
model_tabs_list = []
319315

0 commit comments

Comments
 (0)