Skip to content

Commit

Permalink
Wrap long sponsor names to preserve the horizontal layout for the pro…
Browse files Browse the repository at this point in the history
…file avatar block in the sponsor card
  • Loading branch information
anishTP committed Nov 5, 2024
1 parent 5001862 commit c8aaedc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions funnel/assets/sass/base/_utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@
margin: auto;
}

.margin-left-auto {
margin-left: auto;
}

.margin-right-auto {
margin-right: auto;
}

.zero-padding {
padding: 0 !important;
}
Expand Down
4 changes: 2 additions & 2 deletions funnel/templates/project_layout.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@
{{ faicon(icon='grip-vertical', baseline=false, css_class="margin-bottom drag-handle") }}
{%- endif %}
</div>
<div class="flex-wrapper flex-wrapper--center flex-wrapper--wrap margin-bottom">
{{ profileavatar(sponsorship.member, css_class='flex-item-align-end') }}
<div class="flex-wrapper flex-wrapper--center margin-bottom">
{{ profileavatar(sponsorship.member, css_class='margin-left-auto') }}
{% if current_auth.user and current_auth.user.is_site_editor %}
<a href="{{ sponsorship.url_for('edit') }}" rel="modal:open" aria-label="{% trans %}Edit sponsor{% endtrans %}" data-ga="Edit sponsor" data-cy="edit-sponsor" role="button" aria-haspopup="true">{{ faicon(icon='edit', baseline=false, css_class="mui--text-light mui--align-middle fa-icon--left-margin fa-icon--right-margin") }}</a>
<a href="{{ sponsorship.url_for('remove') }}" rel="modal:open" aria-label="{% trans %}Remove sponsor{% endtrans %}" data-ga="Remove sponsor" data-cy="remove-sponsor" role="button" aria-haspopup="true">{{ faicon(icon='trash-alt', baseline=false, css_class="mui--text-light mui--align-middle") }}</a>
Expand Down

0 comments on commit c8aaedc

Please sign in to comment.