ui: better layout for the filter selections

This commit is contained in:
Jeremy Wall 2024-02-21 15:48:15 -05:00
parent aa1f4f5795
commit 8eab0130f5
2 changed files with 4 additions and 1 deletions

View File

@ -115,7 +115,7 @@ pub async fn dash_ui(State(config): State<Config>, Path(dash_idx): Path<usize>)
.collect::<Vec<(usize, &Graph)>>();
html!(
h1 { (dash.title) }
span-selector {}
span-selector class="row-flex" {}
@for (idx, graph) in &graph_iter {
(graph_component(dash_idx, *idx, *graph))
}

View File

@ -33,6 +33,9 @@ class TimeseriesGraph extends HTMLElement {
this.#height = 600;
this.#pollSeconds = 30;
this.#menuContainer = this.appendChild(document.createElement('div'));
// TODO(jwall): These should probably be done as template clones so we have less places
// to look for class attributes.
this.#menuContainer.setAttribute("class", "row-flex");
this.#targetNode = this.appendChild(document.createElement("div"));
}