diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/EditableView.tsx | 7 | ||||
-rw-r--r-- | src/client/views/collections/CollectionSchemaView.scss | 25 | ||||
-rw-r--r-- | src/client/views/collections/CollectionSchemaView.tsx | 2 | ||||
-rw-r--r-- | src/client/views/nodes/ImageBox.scss | 8 |
4 files changed, 37 insertions, 5 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx index 2e784d3f9..1176edce1 100644 --- a/src/client/views/EditableView.tsx +++ b/src/client/views/EditableView.tsx @@ -29,9 +29,10 @@ export class EditableView extends React.Component<EditableProps> { style={{ width: "100%" }}></input> } else { return ( - <div> - {this.props.contents} - <button onClick={action(() => this.editing = true)}>Edit</button> + <div style={{ alignItems: "center", display: "flex", height: "100%", maxHeight: "35px" }} > + <button style={{ width: "100%" }} onClick={action(() => this.editing = true)}> + {this.props.contents} + </button> </div> ) } diff --git a/src/client/views/collections/CollectionSchemaView.scss b/src/client/views/collections/CollectionSchemaView.scss index 707b44db6..70715c7a3 100644 --- a/src/client/views/collections/CollectionSchemaView.scss +++ b/src/client/views/collections/CollectionSchemaView.scss @@ -1,3 +1,28 @@ + +.collectionSchemaView-container { + + .imageBox-cont { + position:relative; + max-height:100%; + } + .ReactTable .rt-th, .ReactTable .rt-td { + max-height: 75px; + } + .imageBox-cont img { + object-fit: contain; + height: 100% + } + .node { + width:100% !important; + height:100% !important; + .imageBox-cont img { + object-fit: contain; + max-width: 100%; + height: 100% + } + } +} + .Resizer { box-sizing: border-box; background: #000; diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx index eec3b275c..b6bdccaa9 100644 --- a/src/client/views/collections/CollectionSchemaView.tsx +++ b/src/client/views/collections/CollectionSchemaView.tsx @@ -116,7 +116,7 @@ export class CollectionSchemaView extends CollectionViewBase { content = <div /> } return ( - <div onPointerDown={this.onPointerDown} > + <div onPointerDown={this.onPointerDown} className="collectionSchemaView-container"> <SplitPane split={"vertical"} defaultSize="60%"> <ScrollBox> <ReactTable diff --git a/src/client/views/nodes/ImageBox.scss b/src/client/views/nodes/ImageBox.scss index 2bd8b1d3c..36f5e0fe0 100644 --- a/src/client/views/nodes/ImageBox.scss +++ b/src/client/views/nodes/ImageBox.scss @@ -2,7 +2,13 @@ .imageBox-cont { padding: 0vw; position: absolute; - width: 100% + width: 100%; + max-width: 100%; + max-height: 100% +} +.imageBox-cont img { + max-width: 100%; + max-height: 100% } .imageBox-button { |