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
c9c7f945
Commit
c9c7f945
authored
Jun 30, 2026
by
Kantz
Browse files
kleine Umbenennungen
parent
63632233
Changes
4
Hide whitespace changes
Inline
Side-by-side
math-tutor/frontend/src/components/Canvas/CanvasToggle.tsx
View file @
c9c7f945
...
@@ -11,7 +11,7 @@ export default function CanvasToggle({
...
@@ -11,7 +11,7 @@ export default function CanvasToggle({
}:
CanvasToggleProps
)
{
}:
CanvasToggleProps
)
{
return
(
return
(
<
button
className
=
"btn"
type
=
"button"
onClick
=
{
onToggle
}
>
<
button
className
=
"btn"
type
=
"button"
onClick
=
{
onToggle
}
>
{
isVisible
?
t
(
"
hide
"
)
:
t
(
"
show
"
)
}
{
isVisible
?
t
(
"
cancel
"
)
:
t
(
"
show
"
)
}
</
button
>
</
button
>
);
);
}
}
math-tutor/frontend/src/components/Chat/MessageInput.tsx
View file @
c9c7f945
...
@@ -282,6 +282,7 @@ export default function MessageInput({
...
@@ -282,6 +282,7 @@ export default function MessageInput({
attributes
:
{
attributes
:
{
class
:
"
tiptap composer-editor
"
,
class
:
"
tiptap composer-editor
"
,
"
aria-label
"
:
t
(
"
typeQuestionOrLatex
"
),
"
aria-label
"
:
t
(
"
typeQuestionOrLatex
"
),
"
data-placeholder
"
:
t
(
"
typeQuestionOrLatex
"
),
},
},
handleKeyDown
(
_view
,
event
)
{
handleKeyDown
(
_view
,
event
)
{
const
currentEditor
=
editorRef
.
current
;
const
currentEditor
=
editorRef
.
current
;
...
@@ -482,7 +483,7 @@ export default function MessageInput({
...
@@ -482,7 +483,7 @@ export default function MessageInput({
/>
/>
<
div
className
=
"dialog-actions"
>
<
div
className
=
"dialog-actions"
>
<
button
className
=
"btn"
value
=
"cancel"
type
=
"submit"
>
<
button
className
=
"btn"
value
=
"cancel"
type
=
"submit"
>
{
t
(
"
hide
"
)
}
{
t
(
"
cancel
"
)
}
</
button
>
</
button
>
<
button
className
=
"btn primary"
value
=
"save"
type
=
"submit"
>
<
button
className
=
"btn primary"
value
=
"save"
type
=
"submit"
>
{
t
(
"
formula
"
)
}
{
t
(
"
formula
"
)
}
...
...
math-tutor/frontend/src/i18n.ts
View file @
c9c7f945
...
@@ -6,14 +6,14 @@
...
@@ -6,14 +6,14 @@
chat
:
"
Chat
"
,
chat
:
"
Chat
"
,
canvas
:
"
Canvas
"
,
canvas
:
"
Canvas
"
,
retrievedNotes
:
"
Retrieved Notes
"
,
retrievedNotes
:
"
Retrieved Notes
"
,
typeQuestionOrLatex
:
"
Type your question or paste LaTeX...
"
,
typeQuestionOrLatex
:
"
Input caculations with $
"
,
noResultsYet
:
"
No results yet.
"
,
noResultsYet
:
"
No results yet.
"
,
eraser
:
"
Eraser
"
,
eraser
:
"
Eraser
"
,
pen
:
"
Pen
"
,
pen
:
"
Pen
"
,
clear
:
"
Clear
"
,
clear
:
"
Clear
"
,
saveAndConvert
:
"
Save + Convert
"
,
saveAndConvert
:
"
Save + Convert
"
,
uploadSolution
:
"
Upload solution image
"
,
uploadSolution
:
"
Upload solution image
"
,
hide
:
"
Hide
"
,
cancel
:
"
cancel
"
,
show
:
"
Show
"
,
show
:
"
Show
"
,
newChat
:
"
New Chat
"
,
newChat
:
"
New Chat
"
,
loading
:
"
Loading...
"
,
loading
:
"
Loading...
"
,
...
@@ -105,15 +105,14 @@
...
@@ -105,15 +105,14 @@
chat
:
"
Chat
"
,
chat
:
"
Chat
"
,
canvas
:
"
Canvas
"
,
canvas
:
"
Canvas
"
,
retrievedNotes
:
"
Quellen
"
,
retrievedNotes
:
"
Quellen
"
,
typeQuestionOrLatex
:
typeQuestionOrLatex
:
"
Rechungen eingeben mit $
"
,
"
Gebe hier deine Frage ein. Nutze $ $ für mathematische Eingaben...
"
,
noResultsYet
:
"
bisher keine Quellen
"
,
noResultsYet
:
"
bisher keine Quellen
"
,
eraser
:
"
Radierer
"
,
eraser
:
"
Radierer
"
,
pen
:
"
Stift
"
,
pen
:
"
Stift
"
,
clear
:
"
Leeren
"
,
clear
:
"
Leeren
"
,
saveAndConvert
:
"
Speichern + Konvertieren
"
,
saveAndConvert
:
"
Speichern + Konvertieren
"
,
uploadSolution
:
"
Lösungsbild hochladen
"
,
uploadSolution
:
"
Lösungsbild hochladen
"
,
hide
:
"
Verst
ec
k
en
"
,
cancel
:
"
Abbr
ec
h
en
"
,
show
:
"
Anzeigen
"
,
show
:
"
Anzeigen
"
,
newChat
:
"
neuer Chat
"
,
newChat
:
"
neuer Chat
"
,
loading
:
"
Lade...
"
,
loading
:
"
Lade...
"
,
...
@@ -138,7 +137,7 @@
...
@@ -138,7 +137,7 @@
inspect
:
"
Ansehen
"
,
inspect
:
"
Ansehen
"
,
cite
:
"
Zitieren
"
,
cite
:
"
Zitieren
"
,
draw
:
"
Zeichnen
"
,
draw
:
"
Zeichnen
"
,
formula
:
"
Formel einf
ue
gen
"
,
formula
:
"
Formel einf
ü
gen
"
,
tip
:
"
Tip
"
,
tip
:
"
Tip
"
,
revealSolution
:
"
Lösung
"
,
revealSolution
:
"
Lösung
"
,
send
:
"
Senden
"
,
send
:
"
Senden
"
,
...
...
math-tutor/frontend/src/styles/theme.css
View file @
c9c7f945
...
@@ -571,6 +571,7 @@ body {
...
@@ -571,6 +571,7 @@ body {
}
}
.composer-editor
{
.composer-editor
{
position
:
relative
;
min-height
:
92px
;
min-height
:
92px
;
width
:
100%
;
width
:
100%
;
border-radius
:
12px
;
border-radius
:
12px
;
...
@@ -586,6 +587,13 @@ body {
...
@@ -586,6 +587,13 @@ body {
margin
:
0
;
margin
:
0
;
}
}
.composer-editor
:has
(>
p
:only-child
>
br
.ProseMirror-trailingBreak
)
::before
{
content
:
attr
(
data-placeholder
);
position
:
absolute
;
color
:
#8b857b
;
pointer-events
:
none
;
}
.composer-editor
:focus
{
.composer-editor
:focus
{
border-color
:
#1d1b16
;
border-color
:
#1d1b16
;
box-shadow
:
0
0
0
2px
rgba
(
29
,
27
,
22
,
0.08
);
box-shadow
:
0
0
0
2px
rgba
(
29
,
27
,
22
,
0.08
);
...
...
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