diff --git a/src/features/shared/suggestion-list/_index.scss b/src/features/shared/suggestion-list/_index.scss index a710f4a08..6e1a4aace 100644 --- a/src/features/shared/suggestion-list/_index.scss +++ b/src/features/shared/suggestion-list/_index.scss @@ -8,10 +8,6 @@ z-index: 10; } - .suggestion-list-parent { - @apply absolute border border-[--border-color] left-0 top-[calc(100%+0.5rem)] w-full z-[100] rounded-2xl overflow-hidden min-w-[200px] bg-white dark:bg-dark-600-010-light mb-4 - } - .search-suggestion-list { .list-body { @@ -21,19 +17,7 @@ } .modal-suggestion-list { - width: 100%; - box-shadow: $box-shadow; - z-index: 9; - min-width: 200px; - overflow: hidden; - - @include themify(day) { - @apply bg-white; - } - - @include themify(night) { - @apply bg-dark-600-010-light; - } + @apply w-full border border-[--border-color] rounded-2xl z-10 min-w-[200px] bg-white overflow-hidden; .list-body { max-height: 200px; @@ -49,11 +33,6 @@ align-items: center; white-space: nowrap; - &:last-child { - border-bottom-left-radius: $border-radius; - border-bottom-right-radius: $border-radius; - } - @include themify(day) { @apply text-gray-warm; diff --git a/src/features/shared/suggestion-list/index.tsx b/src/features/shared/suggestion-list/index.tsx index dc14d0a54..a51b3eca2 100644 --- a/src/features/shared/suggestion-list/index.tsx +++ b/src/features/shared/suggestion-list/index.tsx @@ -185,12 +185,11 @@ export function SuggestionList({ opacity: 0, scaleY: 0.85 }} - className="suggestion-list-parent origin-top" + className="absolute border border-[--border-color] left-0 top-[calc(100%+0.5rem)] w-full z-[100] rounded-2xl overflow-hidden min-w-[200px] bg-white mb-4 origin-top" > - {modeItems.map((modeItem, modeKey) => { - const _items = modeItem.items; - return ( - _items.length > 0 && ( + {modeItems.map( + (modeItem, modeKey) => + modeItem.items.length > 0 && (