diff --git a/assets/main.css b/assets/main.css new file mode 100644 index 0000000..befe488 --- /dev/null +++ b/assets/main.css @@ -0,0 +1,11 @@ +#range-controls { + display: flex; +} + +#timerange { + width: 30%; +} + +#range_count { + width: 30%; +} diff --git a/tsplot b/tsplot index 07f679f..30ad3ad 100755 --- a/tsplot +++ b/tsplot @@ -14,10 +14,8 @@ import time import sys import datetime -external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] - -app = dash.Dash(__name__, external_stylesheets=external_stylesheets) +app = dash.Dash(__name__) def get_topics(db): cursor = db.cursor() @@ -60,7 +58,7 @@ plot_page = html.Div([ id='interval-component', interval=4*1000, # in milliseconds n_intervals=0), - html.Div([ + html.Div(id='range-controls', children=[ dcc.Input(id="range_count", type="number", value=1,