chadtmiller.com/group-host
atmosphere group host
0
0
A group's rules show each one's words under its title
web/src/lib/molecules/Rules.svelte+2−2
| @@ -1,5 +1,5 @@ | ||
<script lang="ts"> | ||
/** A group's rules, folded under how many there are, each in order: its title, and what it says. */ | ||
/** A group's rules, folded under how many there are, each in order: its title, and under it what it says. */ | ||
let { rules }: { rules: { rkey: string; title: string; text?: string }[] } = $props(); | ||
</script> | ||
| ||
| @@ -8,7 +8,7 @@ | ||
<summary>Rules<span class="count">{rules.length}</span></summary> | ||
<ol> | ||
{#each rules as r (r.rkey)} | ||
<li><strong>{r.title}</strong>{#if r.text} {r.text}{/if}</li> | ||
<li><strong>{r.title}</strong>{#if r.text}<span class="what">{r.text}</span>{/if}</li> | ||
{/each} | ||
</ol> | ||
</details> | ||
web/src/app.css+1−0
| @@ -223,6 +223,7 @@ span.av::before{content:attr(data-initial)} | ||
.rules summary{cursor:pointer;font-weight:var(--weight-medium);color:var(--fg)} | ||
.rules ol{margin-top:var(--space-2);gap:var(--space-1)} | ||
.rules strong{color:var(--fg)} | ||
.rules .what{display:block;overflow-wrap:anywhere} | ||
.standing{display:flex;align-items:center;gap:var(--space-2) var(--space-3);flex-wrap:wrap;padding-top:var(--space-4);border-top:var(--border)} | ||
.standing > span{flex:1;min-width:min(100%,12rem)} | ||
.tag{display:inline-flex;align-items:center;padding:0 var(--space-2);border-radius:var(--radius-pill);background:var(--primary-soft);color:var(--fg);font-size:var(--text-xs);font-weight:var(--weight-medium)} | ||