openvibers/openvibe.games Commits
Achievements and leaderboards on a phone: numbers side by side, the rank column hugs its badge (#322)
Changes
@@@ -140,7 +140,7 @@ p {}.summary {display: grid;-- grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));++ grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));gap: 10px;margin: 20px 0 4px;padding: 0;@@@ -482,3 +482,11 @@ pre code {padding: 16px;}}++++/* The rank column hugs its badge (it took a third of the table on a computer); the player's name gets the room. */++.board th:first-child,++.board td:first-child {++ width: 1%;++ white-space: nowrap;++ padding-right: 8px;++}
@@ -140,7 +140,7 @@ p {
@@ -140,7 +140,7 @@ p {
}
}
.summary {
.summary {
display: grid;
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
+ grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
gap: 10px;
gap: 10px;
margin: 20px 0 4px;
margin: 20px 0 4px;
padding: 0;
padding: 0;
@@ -482,3 +482,11 @@ pre code {
@@ -482,3 +482,11 @@ pre code {
padding: 16px;
padding: 16px;
}
}
}
}
+
+/* The rank column hugs its badge (it took a third of the table on a computer); the player's name gets the room. */
+.board th:first-child,
+.board td:first-child {
+ width: 1%;
+ white-space: nowrap;
+ padding-right: 8px;
+}