fix input style for dark mode

This commit is contained in:
monoid 2024-04-07 22:47:13 +09:00
parent 4a38cad0a4
commit a69cadf0a1

View File

@ -120,7 +120,8 @@ export default function TagInput({
setTags(tags.filter(x=>x!==tag)); setTags(tags.filter(x=>x!==tag));
}}>{tag}</li>)} }}>{tag}</li>)}
</ul> </ul>
<input ref={inputRef} type="text" className="flex-1 border-0 ml-2 focus:border-0 focus:outline-none" placeholder="Add tag" <input ref={inputRef} type="text" className="flex-1 border-0 ml-2 focus:border-0 focus:outline-none
bg-transparent text-sm" placeholder="Add tag"
onFocus={() => setIsFocused(true)} onBlur={() => setIsFocused(false)} onFocus={() => setIsFocused(true)} onBlur={() => setIsFocused(false)}
value={input} onChange={(e) => setInput(e.target.value)} onKeyDown={(e) => { value={input} onChange={(e) => setInput(e.target.value)} onKeyDown={(e) => {
if (e.key === "Enter") { if (e.key === "Enter") {