Skip to content

Commit

Permalink
Stop tables causing an overflow on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodwyer committed May 23, 2024
1 parent 25bd4b6 commit 7016fe0
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion templates/_components/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ <h2>Tables</h2>
<div class="not-prose flex flex-col gap-y-8 relative w-screen max-w-5xl left-1/2 -translate-x-1/2 p-8 bg-slate-200 border border-slate-500 rounded">
<div class="flex flex-row gap-x-8 items-center">
{% #card class="w-full" no_container=True %}
<div class="inline-block min-w-full align-middle overflow-x-auto max-w-full">
<div class="relative inline-block min-w-full align-middle overflow-x-auto max-w-full">
{% #table id="customTable" %}
{% #table_head class="bg-slate-200" %}
{% #table_row %}
Expand Down
2 changes: 1 addition & 1 deletion templates/_partials/latest-job-requests-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% url "job-list" as job_list_url %}
<div id="events" class="max-w-[1500px] w-full mx-auto">
{% #card class="mx-4" no_container=True title="Latest job requests" subtitle="Most recent job requests on the OpenSAFELY platform" button=True button_text="View all job requests" button_href=job_list_url %}
<div class="overflow-hidden px-4 py-2 border-t border-slate-200 md:px-6">
<div class="relative overflow-hidden px-4 py-2 border-t border-slate-200 md:px-6">
<div class="flow-root">
<div class="-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8">
<div class="inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8">
Expand Down
2 changes: 1 addition & 1 deletion templates/job_request/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{% block full_width_content %}
<div class="mx-4 lg:mx-6 xl:mx-8">
{% #card no_container=True %}
<div class="inline-block min-w-full align-middle overflow-x-auto max-w-full">
<div class="relative inline-block min-w-full align-middle overflow-x-auto max-w-full">
{% #table %}
{% #table_head class="bg-slate-200" %}
{% #table_row %}
Expand Down
2 changes: 1 addition & 1 deletion templates/org/event_log.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{% block full_width_content %}
<div class="mx-4 lg:mx-6 xl:mx-8">
{% #card no_container=True %}
<div class="inline-block min-w-full align-middle overflow-x-auto max-w-full">
<div class="relative inline-block min-w-full align-middle overflow-x-auto max-w-full">
{% #table %}
{% #table_head class="bg-slate-200" %}
{% #table_row %}
Expand Down
2 changes: 1 addition & 1 deletion templates/project/event_log.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% block full_width_content %}
<div class="mx-4 lg:mx-6 xl:mx-8">
{% #card no_container=True %}
<div class="inline-block min-w-full align-middle overflow-x-auto max-w-full">
<div class="relative inline-block min-w-full align-middle overflow-x-auto max-w-full">
{% #table %}
{% #table_head class="bg-slate-200" %}
{% #table_row %}
Expand Down
2 changes: 1 addition & 1 deletion templates/staff/dashboards/copiloting.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{% block full_width_content %}
<div class="mx-4 lg:mx-6 xl:mx-8">
{% #card no_container=True %}
<div class="inline-block min-w-full align-middle overflow-x-auto max-w-full">
<div class="relative inline-block min-w-full align-middle overflow-x-auto max-w-full">
{% #table id="customTable" %}
{% #table_head class="bg-slate-200" %}
{% #table_row %}
Expand Down
2 changes: 1 addition & 1 deletion templates/staff/dashboards/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{% block full_width_content %}
<div class="mx-4 lg:mx-6 xl:mx-8">
{% #card no_container=True %}
<div class="inline-block min-w-full align-middle overflow-x-auto max-w-full">
<div class="relative inline-block min-w-full align-middle overflow-x-auto max-w-full">
{% #table id="customTable" %}
{% #table_head class="bg-slate-200" %}
{% #table_row %}
Expand Down
2 changes: 1 addition & 1 deletion templates/staff/dashboards/repos.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{% block full_width_content %}
<div class="mx-4 lg:mx-6 xl:mx-8">
{% #card no_container=True %}
<div class="inline-block min-w-full align-middle overflow-x-auto max-w-full">
<div class="relative inline-block min-w-full align-middle overflow-x-auto max-w-full">
{% #table id="customTable" %}
{% #table_head class="bg-slate-200" %}
{% #table_row %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{% block full_width_content %}
<div class="mx-4 lg:mx-6 xl:mx-8">
{% #card no_container=True %}
<div class="inline-block min-w-full align-middle overflow-x-auto max-w-full">
<div class="relative inline-block min-w-full align-middle overflow-x-auto max-w-full">
{% #table id="customTable" %}
{% #table_head class="bg-slate-200" %}
{% #table_row %}
Expand Down
2 changes: 1 addition & 1 deletion templates/user/event_log.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="mx-4 lg:mx-6 xl:mx-8">
{% if page_obj %}
{% #card no_container=True %}
<div class="inline-block min-w-full align-middle overflow-x-auto max-w-full">
<div class="relative inline-block min-w-full align-middle overflow-x-auto max-w-full">
{% #table %}
{% #table_head class="bg-slate-200" %}
{% #table_row %}
Expand Down
2 changes: 1 addition & 1 deletion templates/workspace/event_log.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
{% block full_width_content %}
{% if page_obj %}
{% #card no_container=True class="mx-4 lg:mx-6 xl:mx-8" %}
<div class="inline-block min-w-full align-middle overflow-x-auto max-w-full">
<div class="relative inline-block min-w-full align-middle overflow-x-auto max-w-full">
{% #table %}
{% #table_head class="bg-slate-200" %}
{% #table_row %}
Expand Down

0 comments on commit 7016fe0

Please sign in to comment.