Skip to content

Commit

Permalink
Merge pull request #8732 from cfpb/tccp/fix-overflow
Browse files Browse the repository at this point in the history
TCCP: Fix mobile horizontal scroll in card list
  • Loading branch information
niqjohnson authored Jan 31, 2025
2 parents fff210f + dfbc486 commit 1358275
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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

0 comments on commit 1358275

Please sign in to comment.