Skip to content

Commit

Permalink
Merge pull request #3088 from continuedev/pe/shorten-placeholder-text
Browse files Browse the repository at this point in the history
chore: shorten tiptap placeholder text
  • Loading branch information
sestinj authored Nov 26, 2024
2 parents 0240c7b + 192b932 commit 1fe81bc
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions gui/src/components/mainInput/TipTapEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,6 @@ function TipTapEditor(props: TipTapEditorProps) {

const { prevRef, nextRef, addRef } = useInputHistory(props.historyKey);

function getPlaceholder() {
if (!hasDefaultModel) {
return "Configure a Chat model to get started";
}

return historyLengthRef.current === 0
? "Ask anything, '/' for slash commands, '@' to add context"
: "Ask a follow-up";
}

const editor: Editor = useEditor({
extensions: [
Document,
Expand Down Expand Up @@ -366,7 +356,7 @@ function TipTapEditor(props: TipTapEditorProps) {
placeholder:
props.placeholder ??
(historyLengthRef.current === 0
? "Ask anything, '/' for slash commands, '@' to add context"
? "Ask anything, '@' to add context"
: "Ask a follow-up"),
}),
Paragraph.extend({
Expand Down

0 comments on commit 1fe81bc

Please sign in to comment.