Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release #210

Merged
merged 3 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/assets/css/ootd/ootd-detail.css
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@
.ootd-detail-content-product-image-wrapper {
display: flex;
align-items: flex-start;
width: fit-content;
width: 5vw;
height: 10vh;
gap: 0.625rem;

border-radius: 0.3125rem;
Expand Down
4 changes: 4 additions & 0 deletions src/assets/css/ootd/ootd-product-search-modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,15 @@
}

.product-name {
width: 130px;
color: var(--Grayscale7, #202027);
font-family: The Jamsil;
font-size: 0.9375rem;
font-style: normal;
font-weight: 300;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.product-size {
Expand Down
7 changes: 5 additions & 2 deletions src/components/ootd/OOTDProductSearchModalComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { type PropType, ref, watch } from 'vue'
import type { ProductSearchResponse } from '@/apis/ootd/PostDto'
import { searchProductFromOOTD } from '@/apis/ootd/ProductSearchService'
import { debounce } from 'lodash'
import { infoModal } from '@/utils/Modal'

const VITE_STATIC_IMG_URL = ref<string>(import.meta.env.VITE_STATIC_IMG_URL)

Expand Down Expand Up @@ -45,9 +46,11 @@ const searchProducts = debounce(async () => {
products.value = productSearchPageResponse.products
hasNext.value = productSearchPageResponse.hasNext

query.value = ''

isCurrentlySearched.value = false

if(products.value.length === 0) {
await infoModal('알림', '검색 결과가 없습니다.')
}
}
}, 500)

Expand Down