Let participants edit their scale comment while voting is open

Participants can fix typos in, add or remove their own comment until the
voting closes. The rating itself stays unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-11 11:40:24 +01:00
1 parent bd488e0b81
commit d518b7a37e
6 files changed
+244 -20

No files matched your search

+12
View File
@@ -530,12 +530,24 @@ button.qa-steps__step:hover:not(:disabled) { color: var(--text); border-color: v
.answers-page li { padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: var(--surface); white-space: pre-line; overflow-wrap: anywhere; }
.answers-page time { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.scale-comment { display: block; margin-top: 16px; font-weight: 600; }
.own-comment__label { margin: 16px 0 4px; color: var(--muted); }
.own-comment { margin: 0; padding: 8px 12px; border-left: 3px solid var(--border); overflow-wrap: anywhere; }
.own-comment__edit { margin-top: 12px; }
.own-comment__edit summary { cursor: pointer; color: var(--muted); width: max-content; max-width: 100%; }
.own-comment__edit summary:hover { color: var(--text); }
.comments { margin-top: 20px; padding: 16px 20px; background: var(--surface-2); border-radius: 14px; }
.comments__counter { margin: 0 0 6px; font-size: .85em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.comments__text { margin: 0; font-size: 1.25em; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.comments__text::before { content: '„'; }
.comments__text::after { content: '“'; }
.comments__value { margin: 6px 0 0; color: var(--muted); font-size: .9em; }
.comments__progress { height: 4px; margin-top: 14px; border-radius: 2px; background: var(--border); overflow: hidden; }
.comments__progress[hidden] { display: block; visibility: hidden; } /* keeps the layout steady while paused */
.comments__progress-fill { height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; }
@keyframes comment-progress {
from { transform: scaleX(0); }
to { transform: scaleX(1); }
}
.comments__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.comments__button { min-width: 44px; min-height: 44px; }
@media (prefers-reduced-motion: no-preference) {