diff options
author | Dominik Guzei <dominik.guzei@gmail.com> | 2019-04-10 11:22:25 +0200 |
---|---|---|
committer | Dominik Guzei <dominik.guzei@gmail.com> | 2019-04-10 11:22:25 +0200 |
commit | 9472deab9496aca3a9bdf20b93f2a84e3e4569b7 (patch) | |
tree | 4785fcbd438330eaa5463203bba249080e6c02e5 /src/components/layout | |
parent | fix drawer add workspace label styles (diff) | |
download | ferdium-app-9472deab9496aca3a9bdf20b93f2a84e3e4569b7.tar.gz ferdium-app-9472deab9496aca3a9bdf20b93f2a84e3e4569b7.tar.zst ferdium-app-9472deab9496aca3a9bdf20b93f2a84e3e4569b7.zip |
refactors workspace theme vars into object structure
Diffstat (limited to 'src/components/layout')
-rw-r--r-- | src/components/layout/AppLayout.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/layout/AppLayout.js b/src/components/layout/AppLayout.js index 0c72c1413..b7f7722dd 100644 --- a/src/components/layout/AppLayout.js +++ b/src/components/layout/AppLayout.js | |||
@@ -50,10 +50,10 @@ const messages = defineMessages({ | |||
50 | 50 | ||
51 | const styles = theme => ({ | 51 | const styles = theme => ({ |
52 | appContent: { | 52 | appContent: { |
53 | width: `calc(100% + ${theme.workspaceDrawerWidth}px)`, | 53 | width: `calc(100% + ${theme.workspaces.drawer.width}px)`, |
54 | transition: 'transform 0.5s ease', | 54 | transition: 'transform 0.5s ease', |
55 | transform() { | 55 | transform() { |
56 | return workspaceStore.isWorkspaceDrawerOpen ? 'translateX(0)' : `translateX(-${theme.workspaceDrawerWidth}px)`; | 56 | return workspaceStore.isWorkspaceDrawerOpen ? 'translateX(0)' : `translateX(-${theme.workspaces.drawer.width}px)`; |
57 | }, | 57 | }, |
58 | }, | 58 | }, |
59 | }); | 59 | }); |