From db5aad8eb679cfe1b1ace5142cf342951217f0f7 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Fri, 19 Feb 2021 13:15:46 +0000 Subject: [PATCH] feat: dual pane settings view --- frontend/src/css/dashboard.css | 26 +++- frontend/src/views/settings/Global.vue | 164 ++++++++++++------------ frontend/src/views/settings/Profile.vue | 58 +++++---- frontend/src/views/settings/Shares.vue | 72 ++++++----- frontend/src/views/settings/User.vue | 48 +++---- frontend/src/views/settings/Users.vue | 48 +++---- 6 files changed, 229 insertions(+), 187 deletions(-) diff --git a/frontend/src/css/dashboard.css b/frontend/src/css/dashboard.css index 52a8d41e..bece5d9d 100644 --- a/frontend/src/css/dashboard.css +++ b/frontend/src/css/dashboard.css @@ -1,8 +1,29 @@ .dashboard { - max-width: 600px; margin: 1em 0; } +.dashboard .row { + display: flex; + margin: 0 -.5em; + flex-wrap: wrap; +} + +.dashboard .row .column { + display: flex; + padding: 0 .5em; + width: 50%; +} + +.dashboard .row .column .card { + flex-grow: 1; +} + +@media(max-width: 1200px) { + .dashboard .row .column { + width: 100%; + } +} + a { color: inherit } @@ -92,7 +113,7 @@ table tr>*:last-child { .card { position: relative; - margin: .5rem 0 1rem 0; + margin: 0 0 1rem 0; background-color: #fff; border-radius: 2px; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); @@ -151,6 +172,7 @@ table tr>*:last-child { .card .card-content.full { padding-bottom: 0; + overflow: auto; } .card h2 { diff --git a/frontend/src/views/settings/Global.vue b/frontend/src/views/settings/Global.vue index 2f2f4b29..a4eadeb2 100644 --- a/frontend/src/views/settings/Global.vue +++ b/frontend/src/views/settings/Global.vue @@ -1,102 +1,108 @@ diff --git a/frontend/src/views/settings/Profile.vue b/frontend/src/views/settings/Profile.vue index 77c4fbe5..9a7503bd 100644 --- a/frontend/src/views/settings/Profile.vue +++ b/frontend/src/views/settings/Profile.vue @@ -1,36 +1,40 @@ diff --git a/frontend/src/views/settings/Shares.vue b/frontend/src/views/settings/Shares.vue index d8a2bb54..f1fd31d2 100644 --- a/frontend/src/views/settings/Shares.vue +++ b/frontend/src/views/settings/Shares.vue @@ -1,40 +1,44 @@ diff --git a/frontend/src/views/settings/User.vue b/frontend/src/views/settings/User.vue index 3cff063c..20c7e463 100644 --- a/frontend/src/views/settings/User.vue +++ b/frontend/src/views/settings/User.vue @@ -1,29 +1,31 @@