fix(app): contain triple-click selection to one message bubble

Triple-clicking a message extended the document Range across the
sibling composer and into the textarea, copying both on Cmd+C. Mark
the messages region non-selectable on web and re-enable selection on
each bubble's outer container so triple-click stays scoped.
This commit is contained in:
Mohamed Boudra
2026-04-28 12:13:31 +07:00
parent 05d279cc65
commit ccf248c332
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -318,6 +318,7 @@ const userMessageStylesheet = StyleSheet.create((theme) => ({
flexDirection: "row",
justifyContent: "flex-end",
paddingHorizontal: theme.spacing[2],
userSelect: isWeb ? "text" : "auto",
},
content: {
alignItems: "flex-end",
@@ -492,6 +493,7 @@ export const assistantMessageStylesheet = StyleSheet.create((theme) => ({
container: {
paddingHorizontal: theme.spacing[2],
paddingVertical: theme.spacing[3],
userSelect: isWeb ? "text" : "auto",
},
containerCompactTop: {
paddingTop: 0,