From 1e83e6f52e71dc334e7d3ff6f51cf21767bcec30 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Sun, 28 Jul 2019 18:04:11 -0700 Subject: [PATCH] Small improvements for small screens --- modules/client/browse/App.js | 101 +++++++++++++---------- modules/client/browse/DirectoryViewer.js | 7 +- 2 files changed, 65 insertions(+), 43 deletions(-) diff --git a/modules/client/browse/App.js b/modules/client/browse/App.js index 04541c2..828d9f9 100644 --- a/modules/client/browse/App.js +++ b/modules/client/browse/App.js @@ -213,59 +213,76 @@ export default function App({ display: 'flex', flexDirection: 'row', alignItems: 'center', - justifyContent: 'space-between' + '@media (max-width: 700px)': { + flexDirection: 'column-reverse', + alignItems: 'flex-start' + } }} > -

+

-
- {' '} - -
+

+ +

diff --git a/modules/client/browse/DirectoryViewer.js b/modules/client/browse/DirectoryViewer.js index 6b66b3c..93301ec 100644 --- a/modules/client/browse/DirectoryViewer.js +++ b/modules/client/browse/DirectoryViewer.js @@ -141,7 +141,12 @@ export default function DirectoryViewer({ path, details: entries }) { width: '100%', borderCollapse: 'collapse', borderRadius: 2, - background: '#fff' + background: '#fff', + '@media (max-width: 700px)': { + '& th + th + th + th, & td + td + td + td': { + display: 'none' + } + } }} >