aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-11-17 12:22:32 -0500
committerbobzel <zzzman@gmail.com>2023-11-17 12:22:32 -0500
commitf027832dd2e3267b70e94c1e60d1703ff86d7fe2 (patch)
treec082999af2678503463b7b812af6550991453383 /src/client/views/nodes/DocumentView.tsx
parent82ef5f0f62031f5744172a40cb59db7ba81bfc8a (diff)
cleaned up captions/title code
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 991aaa75e..c577a9e3c 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -1176,6 +1176,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps
className={`documentView-titleWrapper${showTitleHover ? '-hover' : ''}`}
key="title"
style={{
+ zIndex: 1,
position: this.headerMargin ? 'relative' : 'absolute',
height: this.titleHeight,
width: 100 - sidebarWidthPercent + '%',
@@ -1236,10 +1237,8 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps
this.contents
) : (
<div className="documentView-styleWrapper">
- {' '}
- {!this.headerMargin ? this.contents : titleView}
- {!this.headerMargin ? titleView : this.contents}
- {' ' /* */}
+ {titleView}
+ {this.contents}
{captionView}
</div>
);