fix dev msg options in dark mode

This commit is contained in:
2023-07-12 00:44:06 +08:00
parent 32bf692386
commit d2f21f44bb

View File

@@ -99,7 +99,7 @@ export default function Message(props: Props) {
{showCopiedHint && <CopiedHint />} {showCopiedHint && <CopiedHint />}
{chatStore.develop_mode && ( {chatStore.develop_mode && (
<div> <div>
token{" "} <span className="dark:text-white">token</span>
<input <input
value={chat.token} value={chat.token}
className="w-20" className="w-20"
@@ -158,15 +158,16 @@ export default function Message(props: Props) {
</div> </div>
)} )}
<span> <span>
<label>example</label> <label
<input className="dark:text-white"
type="checkbox" onClick={(event: any) => {
checked={chat.example} chat.example = !chat.example;
onChange={(event: any) => {
chat.example = event.target.checked;
setChatStore({ ...chatStore }); setChatStore({ ...chatStore });
}} }}
/> >
example
</label>
<input type="checkbox" checked={chat.example} />
</span> </span>
</div> </div>
)} )}