Skip to content
Snippets Groups Projects
Commit bfcfddcf authored by Sebastien's avatar Sebastien
Browse files

Fix mosaic label category display on top of the mosaic

parent 7f9aa608
Branches
Tags
1 merge request!98refresh the mosaic on annotation modification
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
justify-content: left; justify-content: left;
padding-left: var(--filter-bg-size); padding-left: var(--filter-bg-size);
align-items: center; align-items: center;
flex-grow: 1;
} }
.mosaic_label_filter_enabled { .mosaic_label_filter_enabled {
......
...@@ -124,9 +124,9 @@ ...@@ -124,9 +124,9 @@
} }
labels.forEach(l => { labels.forEach(l => {
let button = $('<p/>').html(l); let button = $('<div/>').html($('<h2>' + l + '</h2>'));
button.my_state = undefined; button.my_state = undefined;
button.addClass('mosaic_label_filter'); button.addClass('mosaic_filter_item mosaic_button');
button.click(ev => { button.click(ev => {
if (typeof (ev.target.my_state) === 'undefined') ev.target.my_state = true; if (typeof (ev.target.my_state) === 'undefined') ev.target.my_state = true;
else ev.target.my_state = !ev.target.my_state; else ev.target.my_state = !ev.target.my_state;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment