Skip to content

Commit 150becd

Browse files
committed
search result fix
1 parent 26e3680 commit 150becd

File tree

2 files changed

+39
-37
lines changed

2 files changed

+39
-37
lines changed

app/globals.css

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -634,58 +634,60 @@
634634

635635
.dialog {
636636
@apply bg-dark-400! max-w-sm sm:max-w-md md:max-w-2xl mx-auto;
637+
}
637638

638-
.cmd-input {
639-
@apply bg-dark-500!;
640-
641-
input {
642-
@apply placeholder:text-purple-100!;
643-
}
644-
}
645-
646-
.list {
647-
@apply bg-dark-500 max-h-100;
648-
}
639+
.cmd-input {
640+
@apply bg-dark-500!;
649641

650-
.empty {
651-
@apply py-6 text-center text-sm text-gray-400;
642+
input {
643+
@apply placeholder:text-purple-100!;
652644
}
645+
}
653646

654-
.heading {
655-
@apply flex items-center gap-2 text-purple-100;
656-
}
647+
.list {
648+
@apply bg-dark-500 max-h-100;
649+
}
657650

658-
.group {
659-
@apply bg-dark-500 text-purple-100;
660-
}
651+
.heading {
652+
@apply flex items-center gap-2 text-purple-100;
653+
}
661654

662-
.search-item {
663-
@apply grid! grid-cols-4! gap-4! items-center! data-[selected=true]:bg-dark-400! transition-all! cursor-pointer! hover:bg-dark-400/50! py-3!;
655+
.group {
656+
@apply bg-dark-500 text-purple-100;
657+
}
658+
}
664659

665-
.coin-info {
666-
@apply flex! gap-2! items-center! col-span-2!;
660+
.dialog {
661+
.empty {
662+
@apply py-6 text-center text-sm text-gray-400;
663+
}
667664

668-
img {
669-
@apply size-9 rounded-full;
670-
}
665+
.search-item {
666+
@apply grid grid-cols-4 gap-4 items-center justify-between data-[selected=true]:bg-dark-400 transition-all !cursor-pointer hover:bg-dark-400 py-3;
671667

672-
div {
673-
@apply flex flex-col;
674-
}
668+
.coin-info {
669+
@apply flex gap-4 items-center col-span-2;
675670

676-
.coin-symbol {
677-
@apply text-sm text-purple-100 uppercase;
678-
}
671+
img {
672+
@apply size-9 rounded-full;
679673
}
680674

681-
.coin-price {
682-
@apply font-semibold text-sm lg:text-base;
675+
div {
676+
@apply flex flex-col;
683677
}
684678

685-
.coin-change {
686-
@apply flex gap-1 text-sm lg:text-base items-center font-medium;
679+
.coin-symbol {
680+
@apply text-sm text-purple-100 uppercase;
687681
}
688682
}
683+
684+
.coin-price {
685+
@apply font-semibold text-sm lg:text-base;
686+
}
687+
688+
.coin-change {
689+
@apply flex gap-1 text-sm lg:text-base items-center font-medium;
690+
}
689691
}
690692
}
691693

components/SearchModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const SearchItem = ({ coin, onSelect, isActiveName }: SearchItemProps) => {
3838
className='search-item'
3939
>
4040
<div className='coin-info'>
41-
<Image src={coin.thumb} alt={coin.name} width={32} height={32} />
41+
<Image src={coin.thumb} alt={coin.name} width={40} height={40} />
4242

4343
<div>
4444
<p className={cn('font-bold', isActiveName && 'text-white')}>

0 commit comments

Comments
 (0)