Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
math_tutor_dev
public_math_tutor
Commits
9f6573c0
Commit
9f6573c0
authored
Jun 30, 2026
by
Kantz
Browse files
error with parial loss of message fixed
parent
3f8118b0
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
math-tutor/frontend/src/components/Chat/ChatWindow.tsx
View file @
9f6573c0
...
...
@@ -8,7 +8,7 @@ type ChatWindowProps = {
messages
:
ChatMessage
[];
draft
:
string
;
onDraftChange
:
(
value
:
string
)
=>
void
;
onSend
:
()
=>
void
;
onSend
:
(
value
:
string
)
=>
void
;
onTip
?:
()
=>
void
;
onRevealSolution
?:
()
=>
void
;
isSending
?:
boolean
;
...
...
math-tutor/frontend/src/components/Chat/MessageInput.tsx
View file @
9f6573c0
This diff is collapsed.
Click to expand it.
math-tutor/frontend/src/pages/ChatPage.tsx
View file @
9f6573c0
...
...
@@ -835,9 +835,9 @@ export default function ChatPage() {
setRetrievalLoading
(
false
);
};
const
handleSend
=
async
()
=>
{
const
handleSend
=
async
(
value
:
string
)
=>
{
await
sendMessage
({
text
:
draft
,
text
:
value
,
clearDraft
:
true
,
});
};
...
...
math-tutor/frontend/src/styles/theme.css
View file @
9f6573c0
...
...
@@ -586,6 +586,7 @@ body {
}
.composer-rich-input
{
position
:
relative
;
min-height
:
92px
;
line-height
:
1.6
;
white-space
:
pre-wrap
;
...
...
@@ -594,9 +595,20 @@ body {
cursor
:
text
;
}
.composer-rich-input
[
data-empty
=
"true"
]
::before
,
.composer-rich-input
:empty::before
{
content
:
attr
(
data-placeholder
);
color
:
#8b857b
;
pointer-events
:
none
;
}
.composer-text-part
{
display
:
inline
;
outline
:
none
;
}
.composer-text-part
:empty::before
{
content
:
"\200b"
;
}
.composer-rich-input
:focus
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment