Skip to content

Commit 0e393b0

Browse files
authored
Fix unreadable dropdown menu text in dark mode (mckaywrigley#204)
* Fix unreadable dropdown menu text in dark mode * Fix unreadable dropdown menu text in dark mode
1 parent 6d5d09d commit 0e393b0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

components/Chat/ModelSelect.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export const ModelSelect: FC<Props> = ({ model, models, onModelChange }) => {
1515
<label className="mb-2 text-left text-neutral-700 dark:text-neutral-400">
1616
{t('Model')}
1717
</label>
18-
<div className="w-full rounded-lg border border-neutral-200 pr-2 bg-transparent text-neutral-900 dark:border-neutral-600 dark:text-white">
18+
<div className="w-full rounded-lg border border-neutral-200 bg-transparent pr-2 text-neutral-900 dark:border-neutral-600 dark:text-white">
1919
<select
20-
className="bg-transparent w-full outline-0 p-2"
20+
className="w-full bg-transparent p-2 outline-0"
2121
placeholder={t('Select a model') || ''}
2222
value={model.id}
2323
onChange={(e) => {
@@ -29,7 +29,11 @@ export const ModelSelect: FC<Props> = ({ model, models, onModelChange }) => {
2929
}}
3030
>
3131
{models.map((model) => (
32-
<option key={model.id} value={model.id}>
32+
<option
33+
key={model.id}
34+
value={model.id}
35+
className="dark:bg-[#343541] dark:text-white"
36+
>
3337
{model.name}
3438
</option>
3539
))}

0 commit comments

Comments
 (0)