Skip to content

Commit

Permalink
Make match list on match play page scroll locally rather than with th…
Browse files Browse the repository at this point in the history
…e whole page.
  • Loading branch information
patfair committed Jul 1, 2023
1 parent 907a9a2 commit 328913f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions static/css/cheesy-arena.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,15 @@ input[data-changed="true"], select[data-changed="true"] {
margin-top: 5px;
margin-bottom: 10px;
}
.match-list {
height: 610px;
overflow-y: auto;
}
.match-list table {
border-collapse: separate;
}
.match-list th {
position: sticky;
top: 0;
background-color: #fff;
}
2 changes: 1 addition & 1 deletion templates/match_play.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</ul>
<div class="tab-content">
{{range $type, $matches := .MatchesByType}}
<div class="tab-pane {{if eq $.CurrentMatchType $type}} active{{end}}" id="{{$type}}">
<div class="match-list tab-pane {{if eq $.CurrentMatchType $type}} active{{end}}" id="{{$type}}">
<table class="table table-striped table-hover ">
<thead>
<tr>
Expand Down

0 comments on commit 328913f

Please sign in to comment.