mirror of
https://github.com/zaphar/Heracles.git
synced 2025-07-22 20:19:50 -04:00
ui: better layout for the filter selections
This commit is contained in:
parent
aa1f4f5795
commit
8eab0130f5
@ -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))
|
||||
}
|
||||
|
@ -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"));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user