add 'stop' reaction, improve reaction button layout

This commit is contained in:
marlon-erler
2026-04-08 11:24:33 +00:00
parent 4945fb5136
commit ef25cd223d
9 changed files with 69 additions and 16 deletions
+6 -1
View File
@@ -747,7 +747,12 @@ body[showing-chat] #chat-page-wrapper {
display: none;
}
.message-reaction-row {
grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
grid-template-columns: repeat(3, minmax(80px, 1fr));
}
@media (min-width: 100px) {
.message-reaction-row {
grid-template-columns: repeat(3, minmax(80px, 1fr));
}
}
/* src/View/ChatPages/taskPage.css */
+20
View File
@@ -1513,6 +1513,7 @@
var ReactionSymbols = /* @__PURE__ */ ((ReactionSymbols2) => {
ReactionSymbols2["ThumbsUp"] = "\u{1F44D}";
ReactionSymbols2["Check"] = "\u2705";
ReactionSymbols2["Stop"] = "\u{1F6D1}";
ReactionSymbols2["Attention"] = "\u2757\uFE0F";
ReactionSymbols2["DoubleAttention"] = "\u203C\uFE0F";
ReactionSymbols2["Question"] = "\u2753";
@@ -2030,6 +2031,7 @@
);
this.reactionsThumbsUp = new MapState();
this.reactionsCheck = new MapState();
this.reactionsStop = new MapState();
this.reactionsAttention = new MapState();
this.reactionsDoubleAttention = new MapState();
this.reactionsQuestion = new MapState();
@@ -2041,6 +2043,10 @@
[this.reactionsCheck],
() => this.reactionsCheck.value.size
);
this.reactionsStopCount = createProxyState(
[this.reactionsStop],
() => this.reactionsStop.value.size
);
this.reactionsAttentionCount = createProxyState(
[this.reactionsAttention],
() => this.reactionsAttention.value.size
@@ -2086,6 +2092,8 @@
return setReaction(this.reactionsThumbsUp);
case "\u2705" /* Check */:
return setReaction(this.reactionsCheck);
case "\u{1F6D1}" /* Stop */:
return setReaction(this.reactionsStop);
case "\u2757\uFE0F" /* Attention */:
return setReaction(this.reactionsAttention);
case "\u203C\uFE0F" /* DoubleAttention */:
@@ -2803,6 +2811,7 @@
//
thumbsUpReaction: "Reaction: thumbs up",
checkReaction: "Reaction: check",
stopReaction: "Reaction: stop sign",
attentionReaction: "Reaction: exclamation mark",
doubleAttentionReaction: "Reaction: double exclamation mark",
questionReaction: "Reaction: question mark"
@@ -2990,6 +2999,7 @@
//
thumbsUpReaction: "Reaktion: Daumen hoch",
checkReaction: "Reaktion: Haken",
stopReaction: "Reaktion: Stopp",
attentionReaction: "Reaktion: Ausrufezeichen",
doubleAttentionReaction: "Reaktion: doppeltes Ausrufezeichen",
questionReaction: "Reaktion: Fragezeichen"
@@ -3167,6 +3177,7 @@
//
thumbsUpReaction: "Reacci\xF3n: pulgar hacia arriba",
checkReaction: "Reacci\xF3n: marca de verificaci\xF3n",
stopReaction: "Reacci\xF3n: signo de parada",
attentionReaction: "Reaccion: signo de atenci\xF3n",
doubleAttentionReaction: "Reaccion: signo de atenci\xF3n doble",
questionReaction: "Reaccion: signo de interrogaci\xF3n"
@@ -3987,6 +3998,12 @@
reactionState = chatMessageViewModel.reactionsCheck;
break;
}
case "\u{1F6D1}" /* Stop */: {
audioLabel = translations.chatPage.message.stopReaction;
count = chatMessageViewModel.reactionsStopCount;
reactionState = chatMessageViewModel.reactionsStop;
break;
}
case "\u2757\uFE0F" /* Attention */: {
audioLabel = translations.chatPage.message.attentionReaction;
count = chatMessageViewModel.reactionsAttentionCount;
@@ -4032,6 +4049,9 @@
), MessageReactionButton(
chatMessageViewModel,
"\u2705" /* Check */
), MessageReactionButton(
chatMessageViewModel,
"\u{1F6D1}" /* Stop */
), MessageReactionButton(
chatMessageViewModel,
"\u2757\uFE0F" /* Attention */