From ba735c7ee5fd2592ff539a592a2175e7b9794a8c Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Tue, 2 Oct 2018 11:50:56 +1000 Subject: [PATCH] Tidy up page elements --- daqviewer/daqviewer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daqviewer/daqviewer.py b/daqviewer/daqviewer.py index 477124f..c447fa2 100644 --- a/daqviewer/daqviewer.py +++ b/daqviewer/daqviewer.py @@ -14,14 +14,14 @@ import plotly.plotly as py import plotly.graph_objs as go app = dash.Dash() +app.title = 'daqviewer' app.scripts.config.serve_locally = True app.layout = html.Div([ dcc.Upload( id='upload-data', - children=html.Div(['Drag and Drop or ', - html.A('Select Files')]), + children=html.Div([html.A('Drag and drop csv files, or click to select.')]), style={ - 'width': '100%', + 'width': '99%', 'height': '60px', 'lineHeight': '60px', 'borderWidth': '1px', @@ -30,8 +30,8 @@ app.layout = html.Div([ 'textAlign': 'center', 'margin': '10px' }, - # Allow multiple files to be uploaded - multiple=True), + # Only allow single files to be uploaded + multiple=False), html.Div(id='output-data-upload'), ])