From 67c2a607aa960abb23cc6ba3c4014891bb67097d Mon Sep 17 00:00:00 2001 From: Shpuld Shpludson Date: Tue, 18 Dec 2018 18:26:14 +0000 Subject: [PATCH] Feature/bigger icons for mobile / #211 --- src/App.scss | 58 ++++++++++++------- src/App.vue | 8 +-- src/boot/after_store.js | 13 +++-- .../delete_button/delete_button.vue | 2 +- .../favorite_button/favorite_button.vue | 4 +- .../post_status_form/post_status_form.vue | 4 +- .../retweet_button/retweet_button.vue | 6 +- src/components/status/status.vue | 14 ++--- src/components/style_switcher/preview.vue | 8 +-- .../user_card_content/user_card_content.vue | 2 +- src/components/user_finder/user_finder.vue | 5 +- .../user_settings/user_settings.vue | 6 +- 12 files changed, 76 insertions(+), 54 deletions(-) diff --git a/src/App.scss b/src/App.scss index 7f33cd51bf..9c8e2ad372 100644 --- a/src/App.scss +++ b/src/App.scss @@ -237,13 +237,11 @@ i[class*=icon-] { flex-wrap: wrap; .nav-icon { - font-size: 1.1em; margin-left: 0.4em; } &.right { justify-content: flex-end; - padding-right: 20px; } } @@ -251,7 +249,8 @@ i[class*=icon-] { flex: 1 } -nav { +.nav-bar { + padding: 0; width: 100%; align-items: center; position: fixed; @@ -295,10 +294,13 @@ nav { } .inner-nav { + margin: auto; + box-sizing: border-box; + padding-left: 10px; + padding-right: 10px; display: flex; align-items: center; flex-basis: 970px; - margin: auto; height: 50px; a, a i { @@ -466,7 +468,7 @@ nav { &.hidden { opacity: 0; - max-width: 20px; + max-width: 5px; } } } @@ -606,22 +608,8 @@ nav { } } -@media all and (max-width: 959px) { - .mobile-hidden { - display: none; - } - - .panel-switcher { - display: flex; - } - - .container { - padding: 0 0 0 0; - } - - .panel { - margin: 0.5em 0 0.5em 0; - } +.item.right { + text-align: right; } .visibility-tray { @@ -650,3 +638,31 @@ nav { border-radius: $fallback--inputRadius; border-radius: var(--inputRadius, $fallback--inputRadius); } + +@media all and (max-width: 959px) { + .mobile-hidden { + display: none; + } + + .panel-switcher { + display: flex; + } + + .container { + padding: 0; + } + + .panel { + margin: 0.5em 0 0.5em 0; + } + + .button-icon { + font-size: 1.2em; + } + + .status .status-actions { + div { + max-width: 4em; + } + } +} diff --git a/src/App.vue b/src/App.vue index a3a7ecf6b5..4d4680e2a4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@ @@ -29,7 +29,8 @@ height: 29px; } .user-finder-input { - max-width: 80%; + // TODO: do this properly without a rough guesstimate of 2 icons + paddings + max-width: calc(100% - 30px - 30px - 20px); } .search-button { diff --git a/src/components/user_settings/user_settings.vue b/src/components/user_settings/user_settings.vue index b238571dba..4bc2eeecca 100644 --- a/src/components/user_settings/user_settings.vue +++ b/src/components/user_settings/user_settings.vue @@ -49,7 +49,7 @@
Error: {{ avatarUploadError }} - +
@@ -66,7 +66,7 @@
Error: {{ bannerUploadError }} - +
@@ -81,7 +81,7 @@
Error: {{ backgroundUploadError }} - +