1
0

add no sessions message

This commit is contained in:
Adrian Wannenmacher 2026-03-09 21:20:45 +01:00
parent 69790b4716
commit eebaaa7f0e
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,11 @@
border-radius: 5px;
margin: 1em;
&.-text {
display: block;
text-align: center;
}
>.theirname {
font-weight: bold;
grid-area: their-name;

View File

@ -7,6 +7,9 @@ export default class SessionList {
view({attrs: { models, onSelect, onDelete } }) {
return m("section.wb-session-list", [
m("ol", [
models.length === 0
? m("li.item.-text._alternate._apply", "Du hast no koane Sätz…")
: null,
models.map((s, i) => m("li.item._alternate._apply", [
m("span.theirname", s.theirTeam !== "" ? s.theirTeam : "Se"),
m("span.ourname", s.ourTeam !== "" ? s.ourTeam : "Mia"),