Merge pull request #434 from QuantuM410/quantum410/frontend-placeholder

Added css attribute placeholder for search div
This commit is contained in:
Alex 2023-10-05 15:55:00 +01:00 committed by GitHub
commit 30299a9f04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -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`}

View File

@ -358,3 +358,9 @@ template {
[hidden] {
display: none;
}
[contentEditable]:empty:before {
content: attr(placeholder);
color: #9ca3af;
opacity: 1;
}