diff --git a/app/lib/components/Room.jsx b/app/lib/components/Room.jsx index 741d88f..8232103 100644 --- a/app/lib/components/Room.jsx +++ b/app/lib/components/Room.jsx @@ -82,12 +82,7 @@ class Room extends React.Component
-
+
@@ -161,10 +156,7 @@ class Room extends React.Component />
{toolAreaOpen ? +
.state { position: fixed; @@ -168,12 +167,16 @@ > .toolarea-wrapper { position: fixed; + width: 0; top: 0; right: 0; - width: 20%; height: 100%; background-color: rgba(0,0,0,0.1); transition: width 0.3s; + + &.open { + width: 25%; + } } } diff --git a/app/stylus/components/ToolArea.styl b/app/stylus/components/ToolArea.styl index 2ff7a13..4d46b71 100644 --- a/app/stylus/components/ToolArea.styl +++ b/app/stylus/components/ToolArea.styl @@ -1,14 +1,19 @@ [data-component='ToolAreaButton'] { position: absolute; z-index: 101; - top: 20px; - right: 20px; + right: 0; height: 36px; width: 36px; + padding: 2rem; display: flex; flex-direction: column; justify-content: center; align-items: center; + transition: right 0.3s; + + &.on { + right: 25%; + } > .button { flex: 0 0 auto;