From e500f20776bcb36957565e73b15a1b5ac39774c6 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 30 Jan 2018 19:04:40 +0100 Subject: Use display: fixed for the search box --- src/client/react/components/page/User.js | 6 +++++- src/client/style/_page-user.scss | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/client/react/components/page/User.js b/src/client/react/components/page/User.js index 215a6e0..0c79a8b 100644 --- a/src/client/react/components/page/User.js +++ b/src/client/react/components/page/User.js @@ -21,9 +21,13 @@ const UserPage = ({ match, location }) => { return (
+
+
+ +
+
-
diff --git a/src/client/style/_page-user.scss b/src/client/style/_page-user.scss index 395e492..37a51eb 100644 --- a/src/client/style/_page-user.scss +++ b/src/client/style/_page-user.scss @@ -1,6 +1,18 @@ .page-user { + .search-wrapper { + position: fixed; + width: 100%; + + .search-container { + max-width: 600px; + margin: 0 auto; + padding: 8px; + } + } + .menu { background-color: #F44336; + padding-top: 54px; &-container { max-width: 600px; -- cgit v1.1