Added css attribute placeholder for search div

This commit is contained in:
QuantuM410
2023-10-05 20:01:30 +05:30
parent 4da0785494
commit 70aa3b1ff1
2 changed files with 7 additions and 0 deletions

View File

@@ -149,6 +149,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;
}