diff --git a/src/app/record/components/top-bar/top-bar.component.html b/src/app/record/components/top-bar/top-bar.component.html index 9dc167384..ff0c88ec6 100644 --- a/src/app/record/components/top-bar/top-bar.component.html +++ b/src/app/record/components/top-bar/top-bar.component.html @@ -138,24 +138,31 @@

Names

+ + + Published Name + + + + + Name + + - - - Published Name - -

- {{ creditName }} -

-
+

+ {{ creditName || (givenNames + ' ' + familyName) }} +

+
+ Name
{{ givenNames + ' ' + familyName }}
- +
diff --git a/src/app/record/components/top-bar/top-bar.component.scss b/src/app/record/components/top-bar/top-bar.component.scss index bb8649e36..7e245f9f3 100644 --- a/src/app/record/components/top-bar/top-bar.component.scss +++ b/src/app/record/components/top-bar/top-bar.component.scss @@ -45,10 +45,12 @@ app-panel { } // Scoped to the names panel only: centre the visibility icon against - // the block it belongs to instead of the default flex `stretch`, so it - // stays aligned when the block wraps published name + name onto several - // lines. `app-panel-element` is shared by other panels, so this is kept - // local rather than changed at the source. + // the block it belongs to instead of the default flex `stretch`. The + // caption label above each value lives outside `app-panel-element` (see + // template), so `.line` here is always just the value itself and this + // centres correctly whether it's one line or wraps onto several. + // `app-panel-element` is shared by other panels, so this is kept local + // rather than changed at the source. ::ng-deep .row-with-privacy { align-items: center; }