Tidy up page elements

master
Dan Howe 6 years ago
parent 0d64dc412e
commit ba735c7ee5

@ -14,14 +14,14 @@ import plotly.plotly as py
import plotly.graph_objs as go import plotly.graph_objs as go
app = dash.Dash() app = dash.Dash()
app.title = 'daqviewer'
app.scripts.config.serve_locally = True app.scripts.config.serve_locally = True
app.layout = html.Div([ app.layout = html.Div([
dcc.Upload( dcc.Upload(
id='upload-data', id='upload-data',
children=html.Div(['Drag and Drop or ', children=html.Div([html.A('Drag and drop csv files, or click to select.')]),
html.A('Select Files')]),
style={ style={
'width': '100%', 'width': '99%',
'height': '60px', 'height': '60px',
'lineHeight': '60px', 'lineHeight': '60px',
'borderWidth': '1px', 'borderWidth': '1px',
@ -30,8 +30,8 @@ app.layout = html.Div([
'textAlign': 'center', 'textAlign': 'center',
'margin': '10px' 'margin': '10px'
}, },
# Allow multiple files to be uploaded # Only allow single files to be uploaded
multiple=True), multiple=False),
html.Div(id='output-data-upload'), html.Div(id='output-data-upload'),
]) ])

Loading…
Cancel
Save