Skip to content

Commit 98e46a0

Browse files
authored
Merge pull request #203 from D3vPals/feat/#195
page Home min-width 설정, 카드리스트 스킬태그 이미지 고정으로 수정 (# issue 195)
2 parents 42d5f38 + 882fc18 commit 98e46a0

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/components/home/projectCardLists/cardList/CardList.styled.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ export const TagWrapper = styled.div<{ $positionPadding?: boolean }>`
6767
z-index: 10;
6868
`;
6969

70+
export const SkillTagImgWrapper = styled.div`
71+
border: 1px solid ${({ theme }) => theme.color.grey};
72+
border-radius: 50%;
73+
`;
74+
75+
export const SkillTagImg = styled.img`
76+
width: 2rem;
77+
`;
78+
7079
export const EllipsisIconButton = styled.button`
7180
display: flex;
7281
justify-content: center;

src/components/home/projectCardLists/cardList/CardList.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import PositionButton from '../../../common/positionButton/PositionButton';
2-
import SkillTagImg from '../../../common/skillTagBox/skillTag/skillTagImg/SkillTagImg';
32
import * as S from './CardList.styled';
43
import beginner from '../../../../assets/beginner.svg';
54
import Avatar from '../../../common/avatar/Avatar';
@@ -35,7 +34,9 @@ export default function CardList({ list }: CardListProps) {
3534
<S.TagsWrapper>
3635
{Boolean(list.skillTags.length) &&
3736
listSkillTag.map((tag) => (
38-
<SkillTagImg image={tag.img} key={tag.id} skillTag={tag.name} />
37+
<S.SkillTagImgWrapper key={tag.id}>
38+
<S.SkillTagImg src={tag.img} alt={tag.name} />
39+
</S.SkillTagImgWrapper>
3940
))}
4041
{list.skillTags.length > listSkillTag.length && (
4142
<S.EllipsisIconButton>+{othersSkill}</S.EllipsisIconButton>

src/pages/home/Home.styled.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import styled from 'styled-components';
22

33
export const Container = styled.main`
44
width: 100%;
5+
min-width: 22.7rem;
56
`;
67

78
export const Wrapper = styled.div`

0 commit comments

Comments
 (0)