Skip to content

Commit

Permalink
feat: responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
ttamx committed May 12, 2024
1 parent 5431945 commit 70e9b49
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/components/Scoreboard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
border-width: 1px;
border-color: rgb(107, 114, 128, 1);
border-style: solid;
padding-left: 0.25rem;
padding-right: 0.25rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
overflow: hidden;
Expand All @@ -117,21 +117,26 @@
border-width: 1px;
border-color: rgb(107, 114, 128, 1);
border-style: solid;
padding-left: 0.25rem;
padding-right: 0.25rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#scoreboard tr td.name {
text-align: left;
padding-left: 0.75rem;
text-overflow: ellipsis;
overflow: hidden;
}
#scoreboard tr td.score {
font-weight: bold;
}
@media (min-width: 800px) {
#scoreboard table {
table-layout: fixed;
}
}
#details tr th{
border-collapse: collapse;
border-width: 1px;
Expand Down Expand Up @@ -224,7 +229,6 @@ dialog {
<div id="scoreboard">
<table
class="w-full border-separate border-spacing-0 rounded-lg border border-gray-500 mx-auto overflow-hidden text-center"
style="table-layout: fixed;"
>
<thead>
<tr>
Expand Down

0 comments on commit 70e9b49

Please sign in to comment.