Make rating next to scale comments optional, compact average row
- New scale setting comment_ratings: the rating is only shown next to a comment in the presentation (and sent in the state) when enabled. - Smaller average figure and gauge on the stage so the chart and the comments get more room. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d6166bd9d9
commit
2f5ac533c1
8 files changed
+44
-15
No files matched your search
@@ -579,11 +579,12 @@ body.present {
|
||||
.stage--closed .stage__type::after { content: " · Abstimmung geschlossen"; color: var(--muted); }
|
||||
.stage .bar__track { height: 1.1em; }
|
||||
.stage .columns { height: 34vh; }
|
||||
.stage .average { padding: 2vh 2.5vw; gap: 2vh 4vw; background: rgba(var(--tint), .06); }
|
||||
.stage .average__value strong { font-size: clamp(4rem, 9vw, 8rem); }
|
||||
.stage .average__of { font-size: clamp(1.6rem, 3vw, 2.8rem); }
|
||||
.stage .average__label, .stage .average__count, .stage .average__ends { font-size: clamp(.9rem, 1.4vw, 1.3rem); }
|
||||
.stage .average__track { height: 1em; box-shadow: none; background: linear-gradient(90deg, var(--surface-2), var(--c1)); }
|
||||
.stage .average { padding: 1vh 2vw; gap: 1vh 3vw; margin-bottom: 1.5vh; background: rgba(var(--tint), .06); }
|
||||
.stage .average__value strong { font-size: clamp(2.6rem, 5vw, 4.5rem); }
|
||||
.stage .average__of { font-size: clamp(1.2rem, 2vw, 1.8rem); }
|
||||
.stage .average__label, .stage .average__count, .stage .average__ends { font-size: clamp(.85rem, 1.2vw, 1.1rem); }
|
||||
.stage .average__track { height: .7em; box-shadow: none; background: linear-gradient(90deg, var(--surface-2), var(--c1)); }
|
||||
.stage .average__ends { margin-top: 4px; }
|
||||
.stage .cloud { font-size: clamp(1.4rem, 2.6vw, 2.6rem); }
|
||||
.stage .answers { columns: 340px; }
|
||||
.stage .quiz-timer { font-size: clamp(3rem, 7vw, 6rem); }
|
||||
|
||||
@@ -386,7 +386,9 @@
|
||||
node.querySelector('[data-comment-counter]').textContent =
|
||||
'Kommentar ' + (Comments.index + 1) + ' von ' + Comments.items.length;
|
||||
text.textContent = item.text;
|
||||
node.querySelector('[data-comment-value]').textContent = 'Bewertung: ' + item.value;
|
||||
var value = node.querySelector('[data-comment-value]');
|
||||
value.textContent = item.value === null || item.value === undefined ? '' : 'Bewertung: ' + item.value;
|
||||
value.hidden = value.textContent === '';
|
||||
// Only announce changes the viewer triggered, not every automatic rotation.
|
||||
node.setAttribute('aria-live', Comments.paused ? 'polite' : 'off');
|
||||
text.classList.remove('is-entering');
|
||||
|
||||
Reference in new issue
Block a user