Skip to content

Commit 0a5864a

Browse files
committed
chat: fix some spacing and tips
1 parent 0e8a70b commit 0a5864a

File tree

1 file changed

+30
-13
lines changed

1 file changed

+30
-13
lines changed

src/packages/frontend/chat/message.tsx

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -606,16 +606,20 @@ export default function Message({
606606
) : (
607607
""
608608
)}
609-
<Icon
610-
name="thumbs-up"
611-
style={{
612-
color: showOtherFeedback ? "darkblue" : undefined,
613-
}}
614-
/>
609+
<Tooltip
610+
title={showOtherFeedback ? undefined : "Like this"}
611+
>
612+
<Icon
613+
name="thumbs-up"
614+
style={{
615+
color: showOtherFeedback ? "darkblue" : undefined,
616+
}}
617+
/>
618+
</Tooltip>
615619
</Button>
616620
</Tooltip>
617621
)}{" "}
618-
<Tooltip title="Select this message. Copy the browser URL to link to this message.">
622+
<Tooltip title="Select message. Copy URL to link to this message.">
619623
<Button
620624
onClick={() => {
621625
actions?.setFragment(message.get("date"));
@@ -861,13 +865,13 @@ export default function Message({
861865
}
862866

863867
return (
864-
<div style={{ textAlign: "center", marginBottom: "5px", width: "100%" }}>
868+
<div style={{ textAlign: "center", width: "100%" }}>
865869
<Tooltip
866870
title={
867871
isLLMThread
868872
? `Reply to ${modelToName(
869873
isLLMThread,
870-
)}, sending the entire thread as context.`
874+
)}, sending the thread as context.`
871875
: "Reply to this thread."
872876
}
873877
>
@@ -938,11 +942,17 @@ export default function Message({
938942
const style: CSS =
939943
mode === "standalone"
940944
? {
945+
color: "#666",
941946
marginTop: MARGIN_TOP_VIEWER,
942947
marginLeft: "5px",
943948
marginRight: "5px",
944949
}
945-
: { marginTop: "5px", width: "100%", textAlign: "center" };
950+
: {
951+
color: "#666",
952+
marginTop: "5px",
953+
width: "100%",
954+
textAlign: "center",
955+
};
946956
const iconname = is_folded
947957
? mode === "standalone"
948958
? reverseRowOrdering
@@ -974,9 +984,16 @@ export default function Message({
974984
) : (
975985
<Tooltip
976986
title={
977-
is_folded
978-
? "Unfold this thread"
979-
: "Fold this thread to hide replies"
987+
is_folded ? (
988+
<>
989+
Unfold this thread{" "}
990+
{numChildren
991+
? ` to show ${numChildren} ${plural(numChildren, "reply", "replies")}`
992+
: ""}
993+
</>
994+
) : (
995+
"Fold this thread to hide replies"
996+
)
980997
}
981998
>
982999
{button}

0 commit comments

Comments
 (0)