When resizing the viewport for the header, I noticed other responsive issues and addressed them here

This commit is contained in:
Jonathan Bobel
2024-03-05 09:51:25 -05:00
parent 0d15734110
commit 026ed52ce5
12 changed files with 206 additions and 192 deletions

View File

@@ -355,7 +355,7 @@ td.table-empty-message {
background-image: url(../img/material-icons/description.svg); background-image: url(../img/material-icons/description.svg);
} }
} }
.job-table, .dashboard-table { .table-wrapper {
overflow-x: scroll; overflow-x: scroll;
} }
} }

View File

@@ -11,10 +11,10 @@
<div class="grid-row"> <div class="grid-row">
{% if navigation_links %} {% if navigation_links %}
<div class="tablet:grid-col-2"> <div class="tablet:grid-col-2 margin-bottom-4">
{{ sub_navigation(navigation_links) }} {{ sub_navigation(navigation_links) }}
</div> </div>
<div class="tablet:grid-col-10 padding-left-4 usa-prose site-prose"> <div class="tablet:grid-col-10 tablet:padding-left-4 usa-prose site-prose">
{% else %} {% else %}
<div class="tablet:grid-col-10"> <div class="tablet:grid-col-10">
{% endif %} {% endif %}

View File

@@ -1,7 +1,7 @@
{% if help %} {% if help %}
{% include 'partials/tour.html' %} {% include 'partials/tour.html' %}
{% else %} {% else %}
<nav class="nav"> <nav class="nav margin-bottom-4">
<a class="usa-button margin-top-1 margin-bottom-5 width-full" <a class="usa-button margin-top-1 margin-bottom-5 width-full"
href="{{ url_for('.choose_template', service_id=current_service.id) }}">Send messages</a> href="{{ url_for('.choose_template', service_id=current_service.id) }}">Send messages</a>
<ul class="usa-sidenav"> <ul class="usa-sidenav">

View File

@@ -1,7 +1,7 @@
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, notification_status_field %} {% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, notification_status_field %}
{% from "components/page-footer.html" import page_footer %} {% from "components/page-footer.html" import page_footer %}
<div class="ajax-block-container" aria-labelledby='pill-selected-item'> <div class="ajax-block-container table-wrapper" aria-labelledby='pill-selected-item'>
<div class="dashboard-table bottom-gutter-3-2"> <div class="dashboard-table bottom-gutter-3-2">
{% call(item, row_number) list_table( {% call(item, row_number) list_table(

View File

@@ -8,16 +8,16 @@
<div class="grid-container"> <div class="grid-container">
<div class="grid-row margin-top-5"> <div class="grid-row margin-top-5">
{% if help %} {% if help %}
<div class="grid-col-3"> <div class="tablet:grid-col-3">
{% else %} {% else %}
<div class="grid-col-3"> <div class="tablet:grid-col-3 margin-bottom-4">
{% endif %} {% endif %}
{% include "settings_nav.html" %} {% include "settings_nav.html" %}
</div> </div>
{% if help %} {% if help %}
<div class="grid-col-8"> <div class="tablet:grid-col-8">
{% else %} {% else %}
<div class="grid-col-9 padding-left-4"> <div class="tablet:grid-col-9 tablet:padding-left-4">
{% endif %} {% endif %}
{% block beforeContent %} {% block beforeContent %}
{% block backLink %}{% endblock %} {% block backLink %}{% endblock %}

View File

@@ -5,6 +5,7 @@
<div class="ajax-block-container" id='pill-selected-item'> <div class="ajax-block-container" id='pill-selected-item'>
{% if notifications %} {% if notifications %}
<div class="table-wrapper">
<div class='dashboard-table'> <div class='dashboard-table'>
{% endif %} {% endif %}
{% call(item, row_number) list_table( {% call(item, row_number) list_table(
@@ -29,6 +30,7 @@
{% endcall %} {% endcall %}
{% if notifications %} {% if notifications %}
</div> </div>
</div>
{% endif %} {% endif %}
{% if show_pagination %} {% if show_pagination %}

View File

@@ -14,6 +14,7 @@
{% block maincolumn_content %} {% block maincolumn_content %}
{{ page_header('Callbacks') }} {{ page_header('Callbacks') }}
<div class="table-wrapper">
<div class="bottom-gutter-3-2 dashboard-table body-copy-table"> <div class="bottom-gutter-3-2 dashboard-table body-copy-table">
{% call mapping_table( {% call mapping_table(
caption='General', caption='General',
@@ -34,4 +35,5 @@
{% endcall %} {% endcall %}
{% endcall %} {% endcall %}
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@@ -1,5 +1,6 @@
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %} {% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %}
<div class="table-wrapper">
<div class='dashboard-table ajax-block-container'> <div class='dashboard-table ajax-block-container'>
{% call(item, row_number) list_table( {% call(item, row_number) list_table(
jobs, jobs,
@@ -113,3 +114,4 @@
{% endcall %} {% endcall %}
{% endcall %} {% endcall %}
</div> </div>
</div>

View File

@@ -29,7 +29,7 @@
{{ ajax_block(partials, updates_url, 'template-statistics') }} {{ ajax_block(partials, updates_url, 'template-statistics') }}
<h2 class="margin-top-4 margin-bottom-1">Recent Batches</h2> <h2 class="margin-top-4 margin-bottom-1">Recent Batches</h2>
<div> <div class="table-wrapper">
<table class="usa-table usa-table--borderless job-table"> <table class="usa-table usa-table--borderless job-table">
<thead class="table-field-headings"> <thead class="table-field-headings">
<tr> <tr>

View File

@@ -44,6 +44,7 @@
</div> </div>
</div> </div>
<div class="table-wrapper">
<div class="dashboard-table"> <div class="dashboard-table">
{% call(item, row_number) list_table( {% call(item, row_number) list_table(
notifications_by_type|reverse, notifications_by_type|reverse,
@@ -70,6 +71,7 @@
Only showing the last {{ notifications_by_type|length }} days Only showing the last {{ notifications_by_type|length }} days
</p> </p>
</div> </div>
</div>
<h2 class="govuk-heading-m"> <h2 class="govuk-heading-m">
Messages sent within 10 seconds Messages sent within 10 seconds
@@ -82,6 +84,7 @@
) }} ) }}
</div> </div>
</div> </div>
<div class="table-wrapper">
<div class="dashboard-table"> <div class="dashboard-table">
{% call(item, row_number) list_table( {% call(item, row_number) list_table(
processing_time | reverse, processing_time | reverse,
@@ -103,6 +106,7 @@
Only showing the last {{ processing_time|length }} days Only showing the last {{ processing_time|length }} days
</p> </p>
</div> </div>
</div>
<h2 class="govuk-heading-m"> <h2 class="govuk-heading-m">
Organizations using Notify Organizations using Notify
@@ -120,6 +124,7 @@
<span class="usa-sr-only">using Notify.</span> <span class="usa-sr-only">using Notify.</span>
</div> </div>
</div> </div>
<div class="table-wrapper">
<div class="dashboard-table"> <div class="dashboard-table">
{% call(item, row_number) list_table( {% call(item, row_number) list_table(
organizations_using_notify, organizations_using_notify,
@@ -138,5 +143,6 @@
{% endcall %} {% endcall %}
{% endcall %} {% endcall %}
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@@ -73,6 +73,7 @@
</div> #} </div> #}
{% if months %} {% if months %}
<div class="table-wrapper">
<div class="dashboard-table usage-table body-copy-table margin-top-4"> <div class="dashboard-table usage-table body-copy-table margin-top-4">
{% call(item, row_index) list_table( {% call(item, row_index) list_table(
months, months,
@@ -129,6 +130,7 @@
{% endcall %} {% endcall %}
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>

View File

@@ -9,16 +9,16 @@
{% include "service_navigation.html" %} {% include "service_navigation.html" %}
<div class="grid-row margin-top-5"> <div class="grid-row margin-top-5">
{% if help %} {% if help %}
<div class="grid-col-3"> <div class="tablet:grid-col-3">
{% else %} {% else %}
<div class="grid-col-3"> <div class="tablet:grid-col-3">
{% endif %} {% endif %}
{% include "main_nav.html" %} {% include "main_nav.html" %}
</div> </div>
{% if help %} {% if help %}
<div class="grid-col-8"> <div class="grid-col-8">
{% else %} {% else %}
<div class="grid-col-9 padding-left-4"> <div class="tablet:grid-col-9 tablet:padding-left-4">
{% endif %} {% endif %}
{% block beforeContent %} {% block beforeContent %}
{% block backLink %}{% endblock %} {% block backLink %}{% endblock %}