fix: input style priority (#5383)

This commit is contained in:
Joooye_34
2023-12-22 15:48:28 +08:00
committed by GitHub
parent f11ea7570a
commit 46f824c4e9
8 changed files with 4 additions and 26 deletions

View File

@@ -5,7 +5,6 @@ import { type ReactElement, useCallback } from 'react';
import { openAIApiKeyAtom } from '../core/hooks';
import { conversationHistoryDBName } from '../core/langchain/message-history';
import * as styles from './index.css';
export const DebugContent = (): ReactElement => {
const [key, setKey] = useAtom(openAIApiKeyAtom);
@@ -13,7 +12,7 @@ export const DebugContent = (): ReactElement => {
<div>
<FlexWrapper justifyContent="space-between">
<Input
className={styles.debugContentInput}
style={{ width: 280 }}
defaultValue={key ?? undefined}
onChange={useCallback(
(newValue: string) => {

View File

@@ -41,7 +41,3 @@ export const sendButtonStyle = style({
backgroundColor: 'transparent',
},
});
export const debugContentInput = style({
width: '280px',
});