Skip to content

Commit

Permalink
Hide recent bashos on mobile heya
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldickison committed Sep 25, 2024
1 parent 0154395 commit 7d59e1e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions public/scss/heya.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'media';

#p-heya, #p-heya-list {
section {
background: var(--color-light-yellow-bg);
Expand Down Expand Up @@ -42,6 +44,12 @@
button {
margin: 0;
}

@media (max-width: media.$narrow) {
.wide-only {
display: none;
}
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions templates/heya.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ <h2>Members</h2>
<tr>
<th colspan="2"></th>
<th class="total"></th>
<th colspan="6">Recent Scores</th>
<th colspan="6" class="wide-only">Recent Scores</th>
<th></th>
</tr>
<tr>
<th></th>
<th>Recruited</th>
<th class="numeric total">Total</th>
{% for basho_id in heya.recent_scores_bashos.as_ref().unwrap().iter() %}
<th class="numeric">
<th class="numeric wide-only">
<a href="{{basho_id.url_path()}}?heya={{heya.id}}#leaderboard">
{{basho_id.season()}}
</a>
Expand All @@ -59,7 +59,7 @@ <h2>Members</h2>
<td>{{member.recruit_date.format("%Y-%m-%d")}}</td>
<td class="numeric total">{{member.recent_scores_total()}}</td>
{% for score in member.recent_scores %}
<td class="numeric">{{score}}</td>
<td class="numeric wide-only">{{score}}</td>
{% endfor %}
{% if !member.is_oyakata && (is_oyakata || member.is_self) %}
<td>
Expand Down

0 comments on commit 7d59e1e

Please sign in to comment.