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
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'),
])

Loading…
Cancel
Save