diff options
| author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-07-17 12:18:25 -0400 |
|---|---|---|
| committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-07-17 12:18:25 -0400 |
| commit | 824093d9572a3ba991544b481447199fc653c61a (patch) | |
| tree | d55fe82768a397521c1e4ae9c8d4c5823bc6d9aa /src/client/views/SidebarAnnos.tsx | |
| parent | d6e313be26323d7e8265714665c71e2d571764ae (diff) | |
| parent | 212d49772c1c2aa3d0a9382ef144dc3037faa8c2 (diff) | |
merging
Diffstat (limited to 'src/client/views/SidebarAnnos.tsx')
| -rw-r--r-- | src/client/views/SidebarAnnos.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/SidebarAnnos.tsx b/src/client/views/SidebarAnnos.tsx index dcdc4f776..6493e5d54 100644 --- a/src/client/views/SidebarAnnos.tsx +++ b/src/client/views/SidebarAnnos.tsx @@ -83,7 +83,9 @@ export class SidebarAnnos extends React.Component<FieldViewProps & ExtraProps> { docFilters = () => [...StrListCast(this.props.layoutDoc._docFilters), ...StrListCast(this.props.layoutDoc[this.filtersKey])]; sidebarStyleProvider = (doc: Opt<Doc>, props: Opt<FieldViewProps | DocumentViewProps>, property: string) => { - if (property === StyleProp.ShowTitle) return StrCast(this.props.layoutDoc["sidebar-childShowTitle"], "title"); + if (property === StyleProp.ShowTitle) { + return doc === this.props.rootDoc ? 0 : StrCast(this.props.layoutDoc["sidebar-childShowTitle"], "title"); + } return this.props.styleProvider?.(doc, props, property); } render() { @@ -122,6 +124,7 @@ export class SidebarAnnos extends React.Component<FieldViewProps & ExtraProps> { styleProvider={this.sidebarStyleProvider} docFilters={this.docFilters} scaleField={this.sidebarKey + "-scale"} + setHeight={(height) => this.props.setHeight(height + this.filtersHeight())} isAnnotationOverlay={false} select={emptyFunction} scaling={returnOne} |
