Skip to content

Commit de57ef5

Browse files
chore: shorten section label to 'Locations' so the divider stays consistent
"Pathway Browser Locations" was wider than the data column the divider-name-container is pinned to, so the flex-grow lines on either side collapsed to zero and the label sat flush left -- inconsistent with shorter dividers like "Overview" / "Events" / "Authorship". Tried widening the container so it sized to content, but that pushed the label outside the content card's left edge on wide layouts. Cleanest fix is just to use a label short enough to fit the existing column width with room for the dashes. Context (the section content lists where in the Pathway Browser the entity appears) makes "Locations" unambiguous. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1fa2fd6 commit de57ef5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

projects/pathway-browser/src/app/details/tabs/description-tab/description-tab.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export class DescriptionTabComponent implements OnDestroy {
507507
},
508508
{
509509
key: 'locationsInPWB',
510-
label: 'Pathway Browser Locations',
510+
label: 'Locations',
511511
manual: true,
512512
template: this.locationsTemplate$ as Signal<TemplateRef<any>>,
513513
isPresent: computed(() => this.showLocations()),

projects/website-angular/src/app/content/detail/detail.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
margin: 16px 0 8px;
138138
}
139139

140+
140141
#details {
141142
.content {
142143
min-width: 0;

0 commit comments

Comments
 (0)