Commit c9c7f945 authored by Kantz's avatar Kantz
Browse files

kleine Umbenennungen

parent 63632233
...@@ -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>
); );
} }
...@@ -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")}
......
...@@ -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: "Verstecken", cancel: "Abbrechen",
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 einfuegen", formula: "Formel einfügen",
tip: "Tip", tip: "Tip",
revealSolution: "Lösung", revealSolution: "Lösung",
send: "Senden", send: "Senden",
......
...@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment