Commit 195f4eb
feat: add click-to-edit, ESC-to-cancel, and fix padding consistency for chat messages (RooCodeInc#7790)
* feat: add click-to-edit, ESC-to-cancel, and fix padding consistency
- Enable click-to-edit for past messages by making message text clickable
- Add ESC key handler to cancel edit mode in ChatTextArea
- Fix padding consistency between past and queued message editors
- Adjust right padding for edit mode to accommodate cancel button
Fixes RooCodeInc#7788
* fix: adjust padding and layout for ChatTextArea in edit mode
* refactor: replace hardcoded pr-[72px] with standard Tailwind pr-20 class
---------
Co-authored-by: Roo Code <[email protected]>
Co-authored-by: Hannes Rudolph <[email protected]>
Co-authored-by: daniel-lxs <[email protected]>1 parent 76c6745 commit 195f4eb
File tree
2 files changed
+36
-27
lines changed- webview-ui/src/components/chat
2 files changed
+36
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1172 | 1172 | | |
1173 | 1173 | | |
1174 | 1174 | | |
1175 | | - | |
| 1175 | + | |
| 1176 | + | |
1176 | 1177 | | |
1177 | | - | |
| 1178 | + | |
1178 | 1179 | | |
1179 | 1180 | | |
1180 | 1181 | | |
| |||
1195 | 1196 | | |
1196 | 1197 | | |
1197 | 1198 | | |
1198 | | - | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
1199 | 1208 | | |
1200 | 1209 | | |
1201 | 1210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
| 906 | + | |
| 907 | + | |
920 | 908 | | |
921 | 909 | | |
922 | 910 | | |
| |||
1005 | 993 | | |
1006 | 994 | | |
1007 | 995 | | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
1011 | 999 | | |
1012 | 1000 | | |
| 1001 | + | |
1013 | 1002 | | |
1014 | 1003 | | |
1015 | 1004 | | |
| |||
1030 | 1019 | | |
1031 | 1020 | | |
1032 | 1021 | | |
1033 | | - | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1034 | 1031 | | |
1035 | 1032 | | |
1036 | 1033 | | |
| |||
1054 | 1051 | | |
1055 | 1052 | | |
1056 | 1053 | | |
1057 | | - | |
| 1054 | + | |
1058 | 1055 | | |
1059 | 1056 | | |
1060 | 1057 | | |
| |||
1071 | 1068 | | |
1072 | 1069 | | |
1073 | 1070 | | |
1074 | | - | |
| 1071 | + | |
1075 | 1072 | | |
1076 | 1073 | | |
1077 | 1074 | | |
| |||
1080 | 1077 | | |
1081 | 1078 | | |
1082 | 1079 | | |
1083 | | - | |
| 1080 | + | |
1084 | 1081 | | |
1085 | 1082 | | |
1086 | 1083 | | |
| |||
1102 | 1099 | | |
1103 | 1100 | | |
1104 | 1101 | | |
1105 | | - | |
| 1102 | + | |
1106 | 1103 | | |
1107 | 1104 | | |
1108 | 1105 | | |
| |||
1147 | 1144 | | |
1148 | 1145 | | |
1149 | 1146 | | |
1150 | | - | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
1151 | 1151 | | |
1152 | | - | |
| 1152 | + | |
1153 | 1153 | | |
1154 | 1154 | | |
1155 | 1155 | | |
| |||
0 commit comments