Skip to content

Commit

Permalink
Merge pull request #61 from MetaCell/feature/CC-200
Browse files Browse the repository at this point in the history
CC-200 Work to fix the vertical alignment of the color widget symbols on the layer side bar
  • Loading branch information
aranega authored Dec 21, 2024
2 parents 1f873d1 + e5fe020 commit 50cd9d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ui/layer_list_panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
padding: 2px;
border: 1px solid #aaa;
margin: 2px;
gap: 4px;
}

.neuroglancer-layer-list-panel-item[data-selected="true"] {
Expand Down Expand Up @@ -45,12 +46,17 @@
display: inline-block;
}

.neuroglancer-layer-list-panel-item input[type="checkbox"] {
width: '1rem';
height: '1rem';
margin: '0.25rem';
}

.neuroglancer-layer-list-panel-color-value-wrapper {
position: relative;
width: 10px;
height: 10px;
padding: 5px;
margin: 0 4px;
}

.neuroglancer-layer-list-panel-color-value {
Expand Down
2 changes: 2 additions & 0 deletions src/ui/layer_list_panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export class LayerVisibilityWidget extends RefCounted {
this.layer.setVisible(true);
},
});
element.style.display = "flex";
element.style.alignItems = "center";
element.appendChild(showIcon);
element.appendChild(hideIcon);
const updateView = () => {
Expand Down

0 comments on commit 50cd9d2

Please sign in to comment.