Improve styling

master
0xee 2020-12-21 22:07:25 +01:00
parent 8d33fe713c
commit 065462a071
2 changed files with 13 additions and 4 deletions

11
assets/main.css Normal file
View File

@ -0,0 +1,11 @@
#range-controls {
display: flex;
}
#timerange {
width: 30%;
}
#range_count {
width: 30%;
}

6
tsplot
View File

@ -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,