diff options
| author | bobzel <zzzman@gmail.com> | 2021-09-02 10:16:11 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-09-02 10:16:11 -0400 |
| commit | 4e2e798e0d97858dd03748709d3d55f15a9a1360 (patch) | |
| tree | 4940c2dc2239bcd6b73a567358eebced1394df65 /src/client/views/SidebarAnnos.tsx | |
| parent | 01cab1fc7259f1a944fad49403328e70e9d61b97 (diff) | |
| parent | 6a2be14c25313058ff466ed7c2a6631126616263 (diff) | |
Merge branch 'menu_updates_geireann' of https://github.com/brown-dash/Dash-Web into menu_updates_geireann
Diffstat (limited to 'src/client/views/SidebarAnnos.tsx')
| -rw-r--r-- | src/client/views/SidebarAnnos.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/SidebarAnnos.tsx b/src/client/views/SidebarAnnos.tsx index 0e3663f65..01b79ffd2 100644 --- a/src/client/views/SidebarAnnos.tsx +++ b/src/client/views/SidebarAnnos.tsx @@ -106,9 +106,10 @@ export class SidebarAnnos extends React.Component<FieldViewProps & ExtraProps> { {user} </div>; }; + // TODO: Calculation of the topbar is hardcoded and different for text nodes - it should all be the same and all be part of SidebarAnnos return !this.props.showSidebar ? (null) : <div style={{ - position: "absolute", pointerEvents: this.props.isContentActive() ? "all" : undefined, top: 0, right: 0, + position: "absolute", pointerEvents: this.props.isContentActive() ? "all" : undefined, top: this.props.rootDoc.type !== DocumentType.RTF && StrCast(this.props.rootDoc._showTitle) === "title" ? 15 : 0, right: 0, background: this.props.styleProvider?.(this.props.rootDoc, this.props, StyleProp.WidgetColor), width: `${this.panelWidth()}px`, height: "100%" |
