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

Fix #813 show subscriber mobile friendly #814

Merged
merged 1 commit into from
Feb 27, 2022
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ <h2 class="text-center text-dark mb-3">Subscriber: {{ person.given_name }}</h2>

<main>
<div class="container">
{# subscriber basic details #}
<div class="row">
<div class="card col-md-4" style="width: 18rem;">
<div class="card col-md-12">
<div class="card-body">
<h3 class="card-title">{{ person.given_name }} {{ person.family_name }}</h3>
</div>
Expand All @@ -36,10 +37,10 @@ <h3 class="card-title">{{ person.given_name }} {{ person.family_name }}</h3>
<a class="btn btn-danger" href="{{ url_for('admin.archive_subscriber', subscriber_id = person.id) }}">Archive Subscriber</a>
<br />
</div>

<div class="col-md-1"></div>

<div class="card col-md-7" style="width: 18rem;">
</div>
{# end subscriber basic details #}
<div class="row mt-5">
<div class="card col-md-12">
<div class="card-body">
<h3>Subscriptions</h3>
</div>
Expand Down Expand Up @@ -82,10 +83,31 @@ <h3>Subscriptions</h3>
<!-- invoices list -->
<div class="card-body">
<h3>Invoices</h3>
<div id="scroll-alert" class="alert alert-info" style="display:none;">
<em>&lt;---- Swipe invoice table to the left to see all</em>
</div>
<style>
#subscriber-invoices {
border-collapse: collapse;
}
#subscriber-invoices tbody {
display: block;
overflow-x: scroll;
}
@media (max-width: 850px) {
/* Scroll invoices table on mobile */
#scroll-alert {
display: block !important;
}
#subscriber-invoices tbody {
max-width: 450px;
}
}
@media (max-width: 400px) {
#subscriber-invoices tbody {
max-width: 265px;
}
}
#subscriber-invoices th {
padding: 8px;
}
Expand Down