diff options
| author | bobzel <zzzman@gmail.com> | 2019-02-12 10:48:03 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2019-02-12 10:48:03 -0500 |
| commit | 2541c2cd562251143050554f3c0117caed6d9345 (patch) | |
| tree | 83aa828da20ccd0a7272e3177e1d9e6531fcc1de /src/client/views/nodes | |
| parent | 9dd25514bf0ede364e255e7f82d73369f6eb7f48 (diff) | |
still struggling with sizing issues.
Diffstat (limited to 'src/client/views/nodes')
| -rw-r--r-- | src/client/views/nodes/ImageBox.scss | 3 | ||||
| -rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/ImageBox.scss b/src/client/views/nodes/ImageBox.scss index 83392311b..2bd8b1d3c 100644 --- a/src/client/views/nodes/ImageBox.scss +++ b/src/client/views/nodes/ImageBox.scss @@ -1,7 +1,8 @@ .imageBox-cont { padding: 0vw; - position: absolute + position: absolute; + width: 100% } .imageBox-button { diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index b96e717ed..60be5f94d 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -85,11 +85,10 @@ export class ImageBox extends React.Component<FieldViewProps> { let field = this.props.doc.Get(this.props.fieldKey); let path = field == FieldWaiting ? "https://image.flaticon.com/icons/svg/66/66163.svg" : field instanceof ImageField ? field.Data.href : "http://www.cs.brown.edu/~bcz/face.gif"; - let width = this.props.doc.GetNumber(KeyStore.Width, 1); return ( <div className="imageBox-cont" onPointerDown={this.onPointerDown} ref={this._ref} > - <img src={path} width={width} alt="Image not found" /> + <img src={path} width="100%" alt="Image not found" /> {this.lightbox(path)} </div>) } |
