From f91415a83c00b5c4a3d056b969cc15331a097816 Mon Sep 17 00:00:00 2001 From: Gorka Date: Wed, 2 Jan 2019 12:09:17 -0600 Subject: [PATCH] Voting: add responsive side panels --- apps/voting/app/src/App.js | 82 ++++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 31 deletions(-) diff --git a/apps/voting/app/src/App.js b/apps/voting/app/src/App.js index e667dba02b..3bb3602aa5 100644 --- a/apps/voting/app/src/App.js +++ b/apps/voting/app/src/App.js @@ -261,45 +261,65 @@ class App extends React.Component { )} - - {hasCurrentVote && ( - - )} - + + + {hasCurrentVote && ( + + )} + + - - + - + onClose={this.handleCreateVoteClose} + > + + + ) } } +const ResponsiveSidePanel = styled.div` + ${isSmallScreen() && + ` + & > div { + left: -90px; + right: 90px; + } + + &&& aside { + position: relative; + width: 100%; + padding: 0; + } + `}; +` + const StyledAppBar = styled(AppBar)` padding-left: 0; `