diff options
author | eleanor-park <eleanor_park@brown.edu> | 2024-11-03 16:53:58 -0500 |
---|---|---|
committer | eleanor-park <eleanor_park@brown.edu> | 2024-11-03 16:53:58 -0500 |
commit | 41a8e1c7f1943145bf7099c70ef3eb6540fe0d26 (patch) | |
tree | 1feef15a475508a5de9cb85d33d9d2cc818d3ef9 | |
parent | 8847d6cf5a0eaeeddaefc71d0202247b4d2d096b (diff) |
style fixes to smart draw controls
-rw-r--r-- | src/client/views/smartdraw/SmartDrawHandler.scss | 70 | ||||
-rw-r--r-- | src/client/views/smartdraw/SmartDrawHandler.tsx | 3 |
2 files changed, 40 insertions, 33 deletions
diff --git a/src/client/views/smartdraw/SmartDrawHandler.scss b/src/client/views/smartdraw/SmartDrawHandler.scss index 0e8bd3349..745e00a99 100644 --- a/src/client/views/smartdraw/SmartDrawHandler.scss +++ b/src/client/views/smartdraw/SmartDrawHandler.scss @@ -1,44 +1,52 @@ .smart-draw-handler { position: absolute; -} - -.smartdraw-input { - color: black; -} - -.smartdraw-options { - display: flex; - flex-direction: row; - justify-content: space-around; + width: 265px; - .auto-color { + .smart-draw-main { display: flex; - flex-direction: column; - justify-content: center; - width: 30%; - } + flex-direction: row; + margin-bottom: 5px; - .complexity { - display: flex; - flex-direction: column; - justify-content: center; - width: 31%; + .smartdraw-input { + color: black; + margin: auto; + } } - .size { + .smartdraw-options { display: flex; - flex-direction: column; - justify-content: center; - width: 39%; + flex-direction: row; + justify-content: space-around; - .size-slider { - width: 80%; + .auto-color { + display: flex; + flex-direction: column; + align-items: center; + width: 30%; + } + + .complexity { + display: flex; + flex-direction: column; + align-items: center; + width: 31%; + } + + .size { + display: flex; + flex-direction: column; + align-items: center; + width: 39%; + + .size-slider { + width: 80%; + } } } -} -.regenerate-box, -.edit-box { - display: flex; - flex-direction: row; + .regenerate-box, + .edit-box { + display: flex; + flex-direction: row; + } } diff --git a/src/client/views/smartdraw/SmartDrawHandler.tsx b/src/client/views/smartdraw/SmartDrawHandler.tsx index 83360bb6e..de2c0a4ce 100644 --- a/src/client/views/smartdraw/SmartDrawHandler.tsx +++ b/src/client/views/smartdraw/SmartDrawHandler.tsx @@ -345,7 +345,6 @@ export class SmartDrawHandler extends ObservableReactComponent<object> { renderDisplay() { return ( <div - id="label-handler" className="smart-draw-handler" style={{ display: this._display ? '' : 'none', @@ -354,7 +353,7 @@ export class SmartDrawHandler extends ObservableReactComponent<object> { background: SettingsManager.userBackgroundColor, color: SettingsManager.userColor, }}> - <div> + <div className="smart-draw-main"> <IconButton tooltip="Cancel" onClick={() => { |