Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj committed Nov 2, 2023
1 parent 1b75d9d commit d0fb712
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/neuroglancer/datasource/graphene/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,7 @@ class FindPathTool extends LayerTool<SegmentationUserLayer> {
body.appendChild(label);

const annotationElements = document.createElement('div');
annotationElements.classList.add('graphene-find-path-status-annotations')
annotationElements.classList.add('graphene-find-path-status-annotations');
body.appendChild(annotationElements);

const bindings = getDefaultAnnotationListBindings();
Expand All @@ -2287,7 +2287,7 @@ class FindPathTool extends LayerTool<SegmentationUserLayer> {
const endpointAnnotations = endpoints.map(x => x.value?.annotationReference?.value)
.filter(x => x) as Annotation[];
for (const annotation of endpointAnnotations) {
const [element, elementColumnWidths] = makeAnnotationListElement(this.layer, annotation, findPathAnnotationState, template, globalDimensionIndices, localDimensionIndices, false);
const [element, elementColumnWidths] = makeAnnotationListElement(this.layer, annotation, findPathAnnotationState, template, globalDimensionIndices, localDimensionIndices);
for (const [column, width] of elementColumnWidths.entries()) {
maxColumnWidths[column] = width;
}
Expand Down
20 changes: 5 additions & 15 deletions src/neuroglancer/datasource/graphene/graphene.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
color: #4444ff;
}

.graphene-multicut-status {
/* .graphene-multicut-status {
display: flex;
flex-direction: row;
}
} */

.graphene-multicut-status > .activeGroupIndicator {
padding: 2px;
Expand Down Expand Up @@ -45,7 +45,7 @@
gap: 10px;
}

.graphene-merge-segments-status {
.graphene-merge-segments-status, .graphene-multicut-status, .graphene-find-path-status{
display: flex;
gap: 10px;
}
Expand Down Expand Up @@ -82,20 +82,10 @@
}

.graphene-find-path-status-annotations {
display: grid;
margin: 0 10px;
grid-template-columns: min-content;
}

/* .graphene-find-path-status-annotations:nth-child(2n-1) {
text-align: right;
display: flex;
gap: 10px;
}

.graphene-find-path-status-annotations .neuroglancer-annotation-position > .neuroglancer-annotation-coordinate:nth-child(2) {
margin-left: 10px;
margin-right: 10px;
} */

.graphene-find-path-status > label {
display: flex;
}
Expand Down

0 comments on commit d0fb712

Please sign in to comment.