+
-
diff --git a/src/client/app.scss b/src/client/app.scss
index 7f4ea74..76ce70b 100644
--- a/src/client/app.scss
+++ b/src/client/app.scss
@@ -21,9 +21,16 @@
}
.sidebar-wrapper {
- width: 24em;
+ max-width: calc(100% - 4em);
+ width: 0;
+ &.expanded {
+ width: 24em;
+ }
}
.resources-wrapper {
- width: calc(100% - 28em);
+ width: calc(100% - 4em);
+ &.sidebar-expanded {
+ width: calc(100% - 28em);
+ }
}
diff --git a/src/client/index.scss b/src/client/index.scss
index 9952550..4e9e477 100644
--- a/src/client/index.scss
+++ b/src/client/index.scss
@@ -48,6 +48,7 @@ table {
html {
background-color: #212121;
color: #FFFFFF;
+ --active-color: rgb(0, 180, 204);
}
body {
scrollbar-width: thin;
@@ -140,7 +141,7 @@ select {
*:focus {
position: relative;
- box-shadow: 0 0 2px 0 #d68030ff;
+ box-shadow: 0 0 2px 0 var(--active-color);
outline: none;
z-index: 1;
}
@@ -219,7 +220,7 @@ select {
.react-tabs__tab-panel {
display: none;
overflow-y: auto;
- height: calc(100% - 3em);
+ height: calc(100% - 2.7em);
width: 100%;
}
diff --git a/src/client/scss/trait.scss b/src/client/scss/trait.scss
index 044fac2..5a0bcc4 100644
--- a/src/client/scss/trait.scss
+++ b/src/client/scss/trait.scss
@@ -1,4 +1,3 @@
%trait {
font-size: 1.5em;
- padding: 1em;
}
diff --git a/src/client/sidebar-icons.jsx b/src/client/sidebar-icons.jsx
index c5d5d31..d923dd7 100644
--- a/src/client/sidebar-icons.jsx
+++ b/src/client/sidebar-icons.jsx
@@ -7,17 +7,25 @@ const decorate = compose(
contempo(require('./sidebar-icons.raw.scss')),
);
-const SidebarIcons = () => {
- const [opened, setOpened] = useState(false);
+const SidebarIcons = (props) => {
+ const {
+ active: [activeSidebar, setActiveSidebar],
+ isExpanded: [isSidebarExpanded, setIsSidebarExpanded],
+ } = props;
return (