Fix table wrapping on mobile

Fixes #47
This commit is contained in:
Oliver Davies 2018-01-13 08:42:55 +00:00
parent 858bbefefd
commit c1a3f0ddf3
4 changed files with 10 additions and 7 deletions

View file

@ -14,5 +14,5 @@
}
.table td {
@apply .p-2 .border-t;
@apply .px-2 .py-3 .border-t;
}

View file

@ -62,6 +62,9 @@ svg {
.table-collapse { border-collapse: collapse }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-hidden { overflow-y: hidden; }
@import 'components/listing';
@import 'components/post';
@import 'components/post/about-author';

View file

@ -1,5 +1,5 @@
<tr>
<td>
<td class="whitespace-no-wrap">
{{ row.event.date|date(row.event.fuzzy_date ? 'F Y' : 'j F Y') }}
{% if row.event.time is defined %}
@ -10,7 +10,7 @@
</td>
{% if not talk_page %}
<td>
<td class="whitespace-no-wrap">
{% if row.talk.url is not empty %}
<a href="{{ row.talk.url }}">
{{ row.talk.title }}
@ -29,7 +29,7 @@
</td>
{% endif %}
<td>
<td class="whitespace-no-wrap">
{% if row.event.website is not empty %}
<a href="{{ row.event.website }}">
{{ row.event.name }}
@ -46,7 +46,7 @@
</td>
{% if not upcoming %}
<td>
<td class="whitespace-no-wrap">
{% if row.event.feedback and row.event.date <= today %}
<a href="{{ row.event.feedback }}"
class="button"

View file

@ -1,5 +1,5 @@
<div class="overflow-auto">
<table class="table">
<div class="overflow-x-auto overflow-y-hidden w-full mb-4 border">
<table class="table w-full mb-0 border-0">
<thead>
<tr>
<th class="w-1/4">Date</th>