Skip to content

Commit

Permalink
Wrap long card titles (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
anishTP authored Nov 5, 2024
1 parent 5001862 commit a98f6f5
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

1 comment on commit a98f6f5

@anishTP
Copy link
Contributor Author

@anishTP anishTP commented on a98f6f5 Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before

Image

After

Image

Please sign in to comment.