aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-05-21 12:06:38 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-05-21 12:06:38 -0400
commit8a2abbcc51e42dd48f0b510b9f5790cb44450e48 (patch)
treef2c07c1eec6e53d72487f40751870e8f343ef03e
parenta4d607795e0b252dbef2c175b5a29954aebbfab4 (diff)
fixed backgroundcolor of comparisonbox
-rw-r--r--src/client/views/nodes/ComparisonBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx
index 1ed381058..a14e39bd6 100644
--- a/src/client/views/nodes/ComparisonBox.tsx
+++ b/src/client/views/nodes/ComparisonBox.tsx
@@ -7,7 +7,7 @@ import { observer } from "mobx-react";
import { Doc, Opt } from '../../../fields/Doc';
import { documentSchema } from '../../../fields/documentSchemas';
import { createSchema, makeInterface } from '../../../fields/Schema';
-import { NumCast, Cast } from '../../../fields/Types';
+import { NumCast, Cast, StrCast } from '../../../fields/Types';
import { DragManager } from '../../util/DragManager';
import { ViewBoxAnnotatableComponent } from '../DocComponent';
import { FieldView, FieldViewProps } from './FieldView';
@@ -104,7 +104,7 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent<FieldViewProps, C
ref={ele => this._afterDropDisposer = this.createDropTarget(ele, "afterDoc", this._afterDropDisposer)} >
{displayDoc("after")}
</div>
- <div className="clip-div" style={{ width: clipWidth, transition: this._animating, background: "gray" }}>
+ <div className="clip-div" style={{ width: clipWidth, transition: this._animating, background: StrCast(this.layoutDoc._backgroundColor, "gray") }}>
<div className="beforeBox-cont" key={"before"} style={{ width: this.props.PanelWidth() }}
onPointerDown={e => this.registerSliding(e, 5)}
ref={ele => this._beforeDropDisposer = this.createDropTarget(ele, "beforeDoc", this._beforeDropDisposer)} >