Skip to content

Commit

Permalink
refactor: search card bg color
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdonado committed May 7, 2024
1 parent 109133d commit 440db3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function Input({ onSearch, word }: { onSearch: (value: string) => void; word: st
placeholder="Buscar palabra"
value={word}
/>
<div className="flex h-12 items-center justify-center rounded-r-lg border border-l-0 border-gray-400 dark:border-gray-700">
<div className="flex h-12 items-center justify-center rounded-r-lg border border-l-0 border-gray-400 bg-white dark:border-gray-700 dark:bg-gray-900">
<MagnifyingGlassIcon className="mr-4 w-5 text-gray-400" />
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/WordCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export default function WordCard({ word, currentWord }: Props) {
);

return (
<div className="relative flex w-full flex-col items-center justify-start gap-5 rounded-lg border p-4 text-center lg:w-[672px] lg:max-w-2xl dark:border-gray-700">
<div className="relative flex w-full flex-col items-center justify-start gap-5 rounded-lg border bg-white p-4 text-center lg:w-[672px] lg:max-w-2xl dark:border-gray-700 dark:bg-gray-900">
<div className="flex w-full flex-col gap-2">
{synonyms.length > 0 && (
<div className="flex justify-end text-sm">Sin. {highlightText(synonyms, 'px-2')}</div>
<div className="flex justify-end text-sm">Sin. {highlightText(synonyms)}</div>
)}
{highlightText(word.text, 'h-full text-3xl')}
<span className="mx-auto w-20 border-t-2 border-red-400" />
Expand Down

0 comments on commit 440db3a

Please sign in to comment.