Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCCP: Fix mobile horizontal scroll in card list #8732

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cfgov/tccp/jinja2/tccp/cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<link rel="stylesheet" href="{{ static('apps/tccp/css/main.css') }}">
{% endblock %}

{% block content_modifiers -%}
{{ super() }} u-layout-grid--full-width-breadcrumbs
{%- endblock %}

{% block content_main_modifiers -%}
{{ super() }} htmx-container
{%- endblock %}
Expand Down
5 changes: 5 additions & 0 deletions cfgov/unprocessed/css/enhancements/layout-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@
}
}

// Modifier to allow breadcrumbs on full-width layouts, as in TCCP
.u-layout-grid--full-width-breadcrumbs {
overflow-x: hidden;
}

// Set default line width.
.u-layout-grid__main,
.u-layout-grid__content-intro {
Expand Down
Loading