From b710cdb1103ee94dc38b9dd7669ddd2f36ed922d Mon Sep 17 00:00:00 2001 From: Owocki Date: Sat, 20 Jul 2019 08:19:54 -0600 Subject: [PATCH] responsiveness fixes for profile header, and a 'make fix' --- app/app/context.py | 1 - app/assets/onepager/js/send.js | 1 + app/assets/v2/css/profile.css | 13 +++++++++++++ app/dashboard/templates/profiles/profile.html | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/app/context.py b/app/app/context.py index 820ca588798..b24a3c0e0e2 100644 --- a/app/app/context.py +++ b/app/app/context.py @@ -93,7 +93,6 @@ def preprocess(request): 'is_moderator': profile.is_moderator if profile else False, 'persona_is_funder': profile.persona_is_funder if profile else False, 'persona_is_hunter': profile.persona_is_hunter if profile else False, - } context['json_context'] = json.dumps(context) diff --git a/app/assets/onepager/js/send.js b/app/assets/onepager/js/send.js index 016a085428a..15c78a844dc 100644 --- a/app/assets/onepager/js/send.js +++ b/app/assets/onepager/js/send.js @@ -162,6 +162,7 @@ function sendTip(email, github_url, from_name, username, amount, comments_public } // setup var fromAccount = web3.eth.accounts[0]; + if (typeof fromAccount == 'undefined') { _alert({ message: gettext('You must unlock & enable Gitcoin via your web3 wallet to continue.') }, 'warning'); failure_callback(); diff --git a/app/assets/v2/css/profile.css b/app/assets/v2/css/profile.css index 1a395403376..e5108c2f4eb 100644 --- a/app/assets/v2/css/profile.css +++ b/app/assets/v2/css/profile.css @@ -23,6 +23,7 @@ .profile-header { position: relative; + min-height: 450px; } .profile-header__handle { @@ -151,12 +152,23 @@ a:hover .avatar_edit .avatar_edit_text { border-radius: 50%; } + +@media (max-width: 1200px) { + .profile-header{ + min-height: 350px; + } +} + @media (max-width: 767.98px) { .profile-header__main-infos { text-align: center; } + .profile-header{ + min-height: 250px; + } + .profile-header__avatar { float: none; margin-right: 0!important; @@ -196,6 +208,7 @@ a:hover .avatar_edit .avatar_edit_text { } @media (min-width: 992px) and (max-width: 1199.98px) { + .profile-header__stats .card-header { padding: 0 0.5rem; font-size: 1.2rem; diff --git a/app/dashboard/templates/profiles/profile.html b/app/dashboard/templates/profiles/profile.html index 6d26b29f818..1a92a10b67e 100644 --- a/app/dashboard/templates/profiles/profile.html +++ b/app/dashboard/templates/profiles/profile.html @@ -19,7 +19,7 @@ {% include 'shared/tag_manager_2.html' %} {% include 'shared/top_nav.html' with class='d-md-flex' %} {% include 'home/nav.html' %} -
+
{% csrf_token %} {% if is_my_profile %}