From 3b8df0c22aa7b06e14f99ed40d986e6c2b3369c9 Mon Sep 17 00:00:00 2001 From: danicatalan Date: Wed, 6 Jul 2016 16:26:21 +0200 Subject: [PATCH] fix layout in tablet viewport --- app/react/App/scss/elements/_item.scss | 12 +++--------- app/react/App/scss/modules/_document.scss | 12 ++++++++++++ app/react/App/scss/modules/_uploads.scss | 2 +- app/react/Layout/SidePanel.js | 2 +- app/react/Layout/scss/sidepanel.scss | 13 +++++++++---- app/react/Library/components/DocumentsList.js | 2 +- app/react/Uploads/components/UploadsSection.js | 4 ++-- app/react/Viewer/components/Viewer.js | 6 +++--- 8 files changed, 32 insertions(+), 21 deletions(-) diff --git a/app/react/App/scss/elements/_item.scss b/app/react/App/scss/elements/_item.scss index 03457376dc..1c516823a5 100644 --- a/app/react/App/scss/elements/_item.scss +++ b/app/react/App/scss/elements/_item.scss @@ -1,7 +1,7 @@ .item-group { display: flex; flex-wrap: wrap; - max-width: 960px; + max-width: 1024px; list-style-type: none; padding: 0; margin: auto; @@ -30,13 +30,7 @@ @media (min-width: 640px) { width: 49%; } - @media (min-width: 800px) { - width: 32.9%; - } @media (min-width: 1024px) { - width: 49%; - } - @media (min-width: 1200px) { width: 32.9%; } @@ -81,7 +75,7 @@ } } -$item-width: 260px; +$item-width: 250px; .item-info { width: $item-width; @@ -201,7 +195,7 @@ $item-width: 260px; .sort-by { display: table; width: 100%; - max-width: 960px; + max-width: 1024px; margin: 0 auto; text-align: center; @include desktop { diff --git a/app/react/App/scss/modules/_document.scss b/app/react/App/scss/modules/_document.scss index ed861cd70b..382e74a39a 100644 --- a/app/react/App/scss/modules/_document.scss +++ b/app/react/App/scss/modules/_document.scss @@ -1,6 +1,18 @@ .document-viewer { + width: 100%; + padding: 15px; transform: translateX(0%); transition: all 500ms; + + &.is-active { + @media(min-width: 1024px) { + width: 75%; + } + @media(min-width: 1200px) { + width: 66%; + } + } + &.is-active-2 { transform: translateX(-100%); } diff --git a/app/react/App/scss/modules/_uploads.scss b/app/react/App/scss/modules/_uploads.scss index faf7f024ab..d2288b4688 100644 --- a/app/react/App/scss/modules/_uploads.scss +++ b/app/react/App/scss/modules/_uploads.scss @@ -1,7 +1,7 @@ .upload-box { display: block; position: relative; - max-width: 960px; + max-width: 1024px; padding: 25px 45px 20px 60px; margin: auto; margin-bottom: 15px; diff --git a/app/react/Layout/SidePanel.js b/app/react/Layout/SidePanel.js index c155722727..3493b15355 100644 --- a/app/react/Layout/SidePanel.js +++ b/app/react/Layout/SidePanel.js @@ -5,7 +5,7 @@ export class SidePanel extends Component { render() { let propsClass = this.props.className || ''; return ( -