Skip to content

Commit

Permalink
style: 팔로워 팔로잉 스타일 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
YongChanCho committed Aug 17, 2024
1 parent d51855c commit e49630e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
5 changes: 2 additions & 3 deletions src/components/userProfile/followModal/Follower.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
}

.userList {
flex: 1;
width: 380px;
overflow-y: auto;
margin-top: 8px;
padding-right: 4px;
Expand All @@ -73,8 +73,7 @@
align-items: center;
flex-direction: row;
width: 380px;
height: 60px;
padding: 8px;
height: 52px;
margin-bottom: 8px;
border-radius: 6px;
justify-content: space-between;
Expand Down
4 changes: 2 additions & 2 deletions src/components/userProfile/followModal/Follower.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import styles from './Following.module.scss';
import styles from './Follower.module.scss';
import { ReactComponent as IcoFollower } from '../../../assets/ico_user_follower.svg';
import { ReactComponent as ModalClose } from '../../../assets/btn_followmodal_close.svg';
import { ReactComponent as Search } from '../../../assets/ico_search.svg';
Expand Down Expand Up @@ -49,7 +49,7 @@ const Follower = ({ onClose }: { onClose: () => void }) => {
src={user.profileImageUrl}
alt="mapImage"
className={styles.userProfilePic}
/>
/>
<div className={styles.userName}>{user.nickname}</div>
</div>
<button className={styles.isFollow}>
Expand Down
10 changes: 4 additions & 6 deletions src/components/userProfile/followModal/Following.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,16 @@
color: var(--gray_400);
}


.userList {
flex: 1;
width: 380px;
overflow-y: auto;
margin-top: 8px;
padding-right: 4px; /* To ensure padding when scrolling */
padding-right: 4px;
gap: 6px;
}

::-webkit-scrollbar {
width: 6px; /* 스크롤 바의 너비 */
width: 6px;
}

.userItem {
Expand All @@ -75,7 +74,6 @@
flex-direction: row;
width: 380px;
height: 52px;
padding: 8px;
margin-bottom: 8px;
border-radius: 6px;
justify-content: space-between;
Expand All @@ -92,7 +90,7 @@
width: 40px;
height: 40px;
border-radius: 100px;
margin-right: 12px;
margin-right: 2px;
border: 1px;
}

Expand Down
6 changes: 5 additions & 1 deletion src/components/userProfile/followModal/Following.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ const Following = ({ onClose }: { onClose: () => void }) => {
{followingUsers.map((user: any) => (
<div key={user.userId} className={styles.userItem}>
<div className={styles.userInfo}>
<User/>
<img
src={user.profileImageUrl}
alt="mapImage"
className={styles.userProfilePic}
/>
<div className={styles.userName}>{user.nickname}</div>
</div>
<button className={styles.isFollow}>
Expand Down

0 comments on commit e49630e

Please sign in to comment.