Skip to content

Commit

Permalink
responsiveness fixes for profile header, and a 'make fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Jul 20, 2019
1 parent e8b7063 commit b710cdb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/app/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions app/assets/onepager/js/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
13 changes: 13 additions & 0 deletions app/assets/v2/css/profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

.profile-header {
position: relative;
min-height: 450px;
}

.profile-header__handle {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/templates/profiles/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{% include 'shared/tag_manager_2.html' %}
{% include 'shared/top_nav.html' with class='d-md-flex' %}
{% include 'home/nav.html' %}
<div class="container-fluid header profile-header dash" style="min-height: 450px; {% if profile.profile_wallpaper %} background-image: url( {{ profile.profile_wallpaper }} ) {% endif %}">
<div class="container-fluid header profile-header dash" style="{% if profile.profile_wallpaper %} background-image: url( {{ profile.profile_wallpaper }} ) {% endif %}">
{% csrf_token %}
{% if is_my_profile %}
<div class="position-absolute profile-banner text-center">
Expand Down

0 comments on commit b710cdb

Please sign in to comment.