aboutsummaryrefslogtreecommitdiffstats
path: root/src/static/js
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2019-07-10 09:36:34 -0400
committerSawyer Bergeron <sbergeron@iol.unh.edu>2019-07-10 13:46:44 +0000
commitebd13c8a6d3d3203f45ba65cab1c9c3acf441c48 (patch)
tree19273a0eb755e342ec367bd9d4786857a0e174a3 /src/static/js
parent3bc9170d34ee6cd10bb02fa7641cccd2037562bb (diff)
minor UI fixes
Change-Id: I70b35ee7f62d8b2f22c8677e6c817c3e6a9b3412 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'src/static/js')
-rw-r--r--src/static/js/dashboard.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/static/js/dashboard.js b/src/static/js/dashboard.js
index b74ead9..8e1250a 100644
--- a/src/static/js/dashboard.js
+++ b/src/static/js/dashboard.js
@@ -386,13 +386,18 @@ class MultipleSelectFilterWidget {
add_item_prepopulate(node, prepopulate){
const div = document.createElement("DIV");
div.id = "dropdown_" + this.dropdown_count;
- div.classList.add("list-group-item");
+ div.classList.add("card", "flex-row", "d-flex", "mb-2");
this.dropdown_count++;
const label = document.createElement("H5")
label.appendChild(document.createTextNode(node['name']))
+ label.classList.add("p-1", "m-1");
div.appendChild(label);
- div.appendChild(this.make_input(div, node, prepopulate));
- div.appendChild(this.make_remove_button(div, node));
+ let input = this.make_input(div, node, prepopulate);
+ input.classList.add("flex-grow-1", "p-1", "m-1");
+ div.appendChild(input);
+ let remove_btn = this.make_remove_button(div, node);
+ remove_btn.classList.add("p-1", "m-1");
+ div.appendChild(remove_btn);
document.getElementById("dropdown_wrapper").appendChild(div);
return div;
}