Skip to content

Commit

Permalink
Merge pull request #434 from QuantuM410/quantum410/frontend-placeholder
Browse files Browse the repository at this point in the history
Added css attribute placeholder for search div
  • Loading branch information
dartpain committed Oct 5, 2023
2 parents 23d7fe9 + 70aa3b1 commit 30299a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/conversation/Conversation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export default function Conversation() {
<div className="flex w-full">
<div
ref={inputRef}
placeholder="Type your message here..."
contentEditable
onPaste={handlePaste}
className={`border-000000 overflow-x-hidden; max-h-24 min-h-[2.6rem] w-full overflow-y-auto whitespace-pre-wrap rounded-xl border bg-white py-2 pl-4 pr-9 leading-7 opacity-100 focus:outline-none`}
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -358,3 +358,9 @@ template {
[hidden] {
display: none;
}

[contentEditable]:empty:before {
content: attr(placeholder);
color: #9ca3af;
opacity: 1;
}

2 comments on commit 30299a9

@vercel
Copy link

@vercel vercel bot commented on 30299a9 Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-gpt – ./frontend

docs-gpt-arc53.vercel.app
docs-gpt-brown.vercel.app
docs-gpt-git-main-arc53.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 30299a9 Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextra-docsgpt – ./docs

nextra-docsgpt-git-main-arc53.vercel.app
nextra-docsgpt-arc53.vercel.app
nextra-docsgpt.vercel.app
docs.docsgpt.co.uk

Please sign in to comment.