From f027832dd2e3267b70e94c1e60d1703ff86d7fe2 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Fri, 17 Nov 2023 12:22:32 -0500
Subject: cleaned up captions/title code

---
 src/client/views/nodes/DocumentView.tsx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'src/client/views/nodes/DocumentView.tsx')

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>
         );
-- 
cgit v1.2.3-70-g09d2

