-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: 콜라보레이터 팝오버 모달로 수정, 사용자 ux 로직 개선, 댓글 레이아웃 깨짐 현상 테스트 (#75)
* Feat: 추천 리스트 박스 누르면 이동하게 수정, hover 시 자연스럽게 커지는 애니메이션 추가 * Feat: 사파리에서 인풋 포커스되면 화면 안커지게 설정 * Fix: 콜라보레이터일 때 리스트 수정 버튼만 나오게 수정, edit_pen 아이콘 수정 * Design: 콜라보레이터 팝오버 모달로 수정 * Fix: 캔슬버튼 수정 * Feat: 댓글 폼에서 이미지 누르면 유저의 피드로 이동하도록 로직 추가 * Feat: 탐색페이지 로딩시 스켈레톤 적용 * Feat: 탐색 페이지 스켈레톤 수정 * Fix: 댓글 레이아웃 깨지는 문제 해결을 위해 임시로 공용 폰트 스타일 지움
- Loading branch information
1 parent
33b482c
commit 6e06026
Showing
26 changed files
with
301 additions
and
166 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/app/list/[listId]/_components/ListDetailOuter/CollaboratorsModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import * as styles from './CollaboratorsModal.css'; | ||
import { UserProfileType } from '@/lib/types/userProfileType'; | ||
import CancelButton from '/public/icons/cancel_button.svg'; | ||
import { vars } from '@/styles/theme.css'; | ||
|
||
interface CollaboratorsModalProps { | ||
collaborators?: UserProfileType[] | null; | ||
handleSetOff: () => void; | ||
} | ||
|
||
function CollaboratorsModal({ collaborators, handleSetOff }: CollaboratorsModalProps) { | ||
return ( | ||
<div className={styles.wrapper}> | ||
<button className={styles.cancelButton} onClick={handleSetOff}> | ||
<CancelButton width={24} height={24} fill={vars.color.gray7} /> | ||
</button> | ||
<span className={styles.collaboratorTitle}>콜라보레이터</span> | ||
<ul className={styles.listWrapper}> | ||
{collaborators?.map((item: UserProfileType) => { | ||
return ( | ||
<li className={styles.itemWrapper} key={item.id}> | ||
<Link href={`/user/${item.id}/mylist`}> | ||
<div className={styles.profileImageParent}> | ||
<Image | ||
src={item.profileImageUrl} | ||
className={styles.profileImage} | ||
alt="사용자 프로필 이미지" | ||
fill | ||
style={{ | ||
objectFit: 'cover', | ||
}} | ||
/> | ||
</div> | ||
</Link> | ||
<span className={styles.nickname}>{item.nickname}</span> | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
</div> | ||
); | ||
} | ||
|
||
export default CollaboratorsModal; |
37 changes: 0 additions & 37 deletions
37
src/app/list/[listId]/_components/ListDetailOuter/CollaboratorsPopOver.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.