add icons to session list buttons
This commit is contained in:
parent
eba9ea0ced
commit
2068c26011
@ -20,4 +20,11 @@
|
|||||||
&.-slim {
|
&.-slim {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.-icon {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1ch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -17,23 +17,25 @@ export default class SessionList {
|
|||||||
m("span.ourpoints", "•".repeat(s.result.ourPoints)),
|
m("span.ourpoints", "•".repeat(s.result.ourPoints)),
|
||||||
m("div.actions",
|
m("div.actions",
|
||||||
m(
|
m(
|
||||||
"button.wb-button.-slim._positioned",
|
"button.wb-button.-slim.-icon._positioned",
|
||||||
{
|
{
|
||||||
onclick: () => {
|
onclick: () => {
|
||||||
if (window.confirm("Wiillst den Satz wirklich löschn?"))
|
if (window.confirm("Wiillst den Satz wirklich löschn?"))
|
||||||
onDelete(s.id, i);
|
onDelete(s.id, i);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
m("span.material-symbols-outlined", "delete"),
|
||||||
"löschn"
|
"löschn"
|
||||||
),
|
),
|
||||||
m(
|
m(
|
||||||
m.route.Link,
|
m.route.Link,
|
||||||
{
|
{
|
||||||
href: "/",
|
href: "/",
|
||||||
selector: "button.wb-button.-slim._positioned",
|
selector: "button.wb-button.-slim.-icon._positioned",
|
||||||
params: { session: s.id },
|
params: { session: s.id },
|
||||||
onclick: () => onSelect(s),
|
onclick: () => onSelect(s),
|
||||||
},
|
},
|
||||||
|
m("span.material-symbols-outlined", "playing_cards"),
|
||||||
"spieln",
|
"spieln",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
font-family: 'Material Symbols Outlined';
|
font-family: 'Material Symbols Outlined';
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-size: 24px;
|
font-size: 1em;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
letter-spacing: normal;
|
letter-spacing: normal;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user