aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-11-19 10:30:38 -0500
committerbob <bcz@cs.brown.edu>2019-11-19 10:30:38 -0500
commitdc9e21ebab1d40747c2be3550b9601f8b46b9221 (patch)
tree8e3c54cb1666a7b2eda437ba6779c890c62a30a4
parentf4b2dcf967f8f43f6b4f1245029e8a2823e36784 (diff)
fixes to captions/titles
-rw-r--r--src/client/views/nodes/DocumentView.scss2
-rw-r--r--src/client/views/nodes/DocumentView.tsx2
-rw-r--r--src/client/views/nodes/PDFBox.scss1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.scss b/src/client/views/nodes/DocumentView.scss
index 142036354..dfb84ed5c 100644
--- a/src/client/views/nodes/DocumentView.scss
+++ b/src/client/views/nodes/DocumentView.scss
@@ -59,6 +59,7 @@
color: white;
transform-origin: top left;
top: 0;
+ width: 100%;
height: 25;
background: rgba(0, 0, 0, .4);
padding: 4px;
@@ -78,6 +79,7 @@
.documentView-captionWrapper {
position: absolute;
bottom: 0;
+ width: 100%;
transform-origin: bottom left;
}
}
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index d9e1f2c6b..797b6ecb2 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -596,7 +596,6 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
</div>);
const captionView = (!showCaption ? (null) :
<div className="documentView-captionWrapper">
- {/* style={{ width: `${100 * this.props.ContentScaling()}%`, transform: `scale(${1 / this.props.ContentScaling()})` }}> */}
<FormattedTextBox {...this.props}
onClick={this.onClickHandler} DataDoc={this.props.DataDoc} active={returnTrue}
isSelected={this.isSelected} focus={emptyFunction} select={this.select}
@@ -605,7 +604,6 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
</div>);
const titleView = (!showTitle ? (null) :
<div className="documentView-titleWrapper" style={{
- //width: `${100 * this.props.ContentScaling()}%`, transform: `scale(${1 / this.props.ContentScaling()})`,
position: showTextTitle ? "relative" : "absolute",
pointerEvents: SelectionManager.GetIsDragging() ? "none" : "all",
}}>
diff --git a/src/client/views/nodes/PDFBox.scss b/src/client/views/nodes/PDFBox.scss
index 2674c0de6..53388711b 100644
--- a/src/client/views/nodes/PDFBox.scss
+++ b/src/client/views/nodes/PDFBox.scss
@@ -8,6 +8,7 @@
position:absolute;
cursor:auto;
transform-origin: top left;
+ z-index: 0;
}
.pdfBox-title-outer {