Improve table styles
All checks were successful
continuous-integration/drone/push Build is passing

* Nicer table headers
* Hide invitation IDs on small screens
This commit is contained in:
Basti 2021-02-01 18:53:48 +01:00
parent 8997349186
commit 698e4381c2
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
2 changed files with 25 additions and 7 deletions

View File

@ -118,11 +118,6 @@ main {
}
}
th, td {
line-height: 1.5rem;
padding-right: 1rem;
}
section {
padding-bottom: 3rem;
margin-bottom: 3rem;
@ -132,6 +127,29 @@ main {
}
}
table {
width: 100%;
th, td {
line-height: 1.5rem;
padding-right: 1rem;
&.hide-small {
@include media-max(small) {
display: none;
}
}
}
th {
color: $text-color-discreet;
font-weight: normal;
text-transform: uppercase;
font-size: 0.85rem;
padding-bottom: 0.5rem;
}
}
.actions {
margin-top: 2rem;
}

View File

@ -29,7 +29,7 @@
<table>
<thead>
<tr>
<th>URL</th>
<th class="hide-small">ID</th>
<th>Accepted</th>
<th>Invited user</th>
</tr>
@ -37,7 +37,7 @@
<tbody>
<% @invitations_used.each do |invitation| %>
<tr>
<td class="overflow-ellipsis"><%= invitation_url(invitation.token) %></td>
<td class="hide-small"><%= invitation.token %></td>
<td><%= invitation.used_at.strftime("%Y-%m-%d") %></td>
<td><%= User.find(invitation.invited_user_id).address %></td>
</tr>