diff --git a/src/App.jsx b/src/App.jsx index 577f12f..744982e 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -57,8 +57,9 @@ function App() { return (
- -
+
+ +
); diff --git a/src/StructureVisualizer/ControlBox/index.css b/src/StructureVisualizer/ControlBox/index.css index 3f32f89..b7b670b 100644 --- a/src/StructureVisualizer/ControlBox/index.css +++ b/src/StructureVisualizer/ControlBox/index.css @@ -1,18 +1,18 @@ .control-box { position: relative; z-index: 1; - height: 100px; - width: 450px; - background: rgb(250, 250, 250); + width: 100%; + background: #f8f8f8; text-align: center; border: 1px solid #999; display: flex; + flex-wrap: wrap; flex-direction: column; justify-content: center; align-items: start; - margin-top: -20px; - padding: 30px 10px 10px 10px; border-radius: 5px; + margin-top: -5px; + padding: 15px 10px 10px 10px; } .supercell-container { @@ -33,12 +33,13 @@ .control-box-row { /* margin: 3px; */ - padding: 4px 10px; + padding: 4px; width: 100%; line-height: inherit; /* background-color: pink; */ display: flex; - justify-content: space-between; + flex-wrap: wrap; + justify-content: space-around; align-items: stretch; } @@ -51,8 +52,8 @@ } .camera-controls { - margin-left: auto; - margin-right: auto; + /* margin-left: auto; + margin-right: auto; */ display: inline-flex; align-items: center; justify-items: center; diff --git a/src/StructureVisualizer/StructureWindow/index.css b/src/StructureVisualizer/StructureWindow/index.css index f0fb160..5d7b4c6 100644 --- a/src/StructureVisualizer/StructureWindow/index.css +++ b/src/StructureVisualizer/StructureWindow/index.css @@ -1,12 +1,21 @@ .structure-window-outer { position: relative; + /* height: 100%; */ + width: 100%; + flex: 1; + display: flex; + align-items: stretch; +} + +.structure-window-click-handler { + width: 100%; } .structure-window { position: relative; z-index: 2; - height: 370px; - width: 450px; + height: 100%; + width: 100%; background: white; text-align: center; border: 1px solid #999; diff --git a/src/StructureVisualizer/StructureWindow/index.jsx b/src/StructureVisualizer/StructureWindow/index.jsx index 9e853f0..c8dfc09 100644 --- a/src/StructureVisualizer/StructureWindow/index.jsx +++ b/src/StructureVisualizer/StructureWindow/index.jsx @@ -21,7 +21,10 @@ class StructureWindow extends React.Component { } return (
-
this.props.setMouseEnabledState(true)}> +
this.props.setMouseEnabledState(true)} + >