Lot U2 : le lecteur — cibles de 44 px sur téléphone dans tout le vote déplié et « Tout déplier » ; les trois lectures passent à la ligne au lieu de cacher « Si tout passe » ; « Proposer cet ordre » éteint dit pourquoi, à côté ; l'inertie dite une fois (ses crans dans « Inertie »), la ligne d'une Proposition seed s'efface sous son vote déplié, les versions déjà listées ne sont pas redites dans « Autres versions » ; l'en-tête compte ce que montre la liste (les Propositions seed à part) ; un changement d'inertie d'un ordre ou du titre a sa pastille sur la ligne du module (fr, en, es)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-11-03 11:32:35 +01:00
co-authored by Claude Opus 5.5
parent b0e849b9cb
commit 1fadc1ecb6
15 changed files with 161 additions and 48 deletions
+21 -10
View File
@@ -67,15 +67,19 @@
<Prose text={text.body} />
{#if actions}
<footer class="actions">
<span class="status faint">
{#if seed}
{@const need = needOf(seed)}
{t('tally.short', { for: seed.tally.for, against: seed.tally.against })}{#if need}{' · '}<span title={need.title}>{need.short}</span>{/if}
<span class="crans"><Crans level={seed.votedAtInertia} short /></span>
{:else if seedMinimal}<span title={t('doc.seed.long')}>{i18n.plural('doc.seed.votes', votes)}</span>
{:else if enteredAt}{t('doc.adopted', { date: i18n.date(enteredAt) })}{/if}
{#if rivals > 0} · {i18n.plural('doc.others', rivals)}{/if}
</span>
<!-- Its vote unfolded says the totals, the « oui » to pass, the inertia and the other
versions: the line does not say them again (lot U2). -->
{#if !(seed && voteOpen)}
<span class="status faint">
{#if seed}
{@const need = needOf(seed)}
{t('tally.short', { for: seed.tally.for, against: seed.tally.against })}{#if need}{' · '}<span title={need.title}>{need.short}</span>{/if}
<span class="crans"><Crans level={seed.votedAtInertia} short /></span>
{:else if seedMinimal}<span title={t('doc.seed.long')}>{i18n.plural('doc.seed.votes', votes)}</span>
{:else if enteredAt}{t('doc.adopted', { date: i18n.date(enteredAt) })}{/if}
{#if rivals > 0 && !voteOpen}{' · '}{i18n.plural('doc.others', rivals)}{/if}
</span>
{/if}
<span class="links">
<button type="button" class:on={voteOpen} aria-expanded={voteOpen} aria-controls={voteFor ? `vote-${voteFor}` : undefined} onclick={() => onaction('vote')}>{t('doc.action.vote')}</button>
<button type="button" onclick={() => onaction('propose')}>{proposeLabel ?? t('doc.action.propose')}</button>
@@ -129,11 +133,13 @@
.crans {
margin-left: 0.6rem;
}
/* The gestures keep their place whether the line of state is there or not (it steps aside
while the vote is unfolded, lot U2): on the right on a desktop, on the left on a phone. */
.actions {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
justify-content: flex-start;
gap: 0.4rem 1rem;
margin-top: 0.7rem;
min-height: 2.25rem;
@@ -170,6 +176,11 @@
opacity: 1;
}
}
@media (min-width: 900px) {
.links {
margin-left: auto;
}
}
@media (max-width: 899px) {
.links button {
min-height: 2.75rem;