Skip to content

Commit 616767d

Browse files
committed
chore: index.css main: 100vh -> 100vw 오타 수정
1 parent faa398d commit 616767d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/Banner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Banner = () => {
4545
}, []);
4646

4747
return (
48-
<div className="relative flex h-[184px] w-full">
48+
<div className="relative h-[184px] w-screen max-w-[500px]">
4949
<Link
5050
to={order === 0 ? "/mbti-test" : `/contents/${order}`}
5151
className="absolute h-full w-full"
@@ -67,11 +67,11 @@ const Banner = () => {
6767
)}
6868
>
6969
<source media="(min-width: 500px)" srcSet={image.lg} />
70-
<source media="(min-width: 375px)" srcSet={image.md} />
70+
<source media="(min-width: 375px)" srcSet={image.sm} />
7171
<img
7272
src={image.sm}
7373
alt={image.description}
74-
className="h-full w-full object-cover"
74+
className="h-full w-full"
7575
/>
7676
</picture>
7777
))}

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ main {
3232
margin-top: 54px;
3333
background-color: white;
3434
font-size: 14px;
35-
width: 100vh;
35+
width: 100vw;
3636
max-width: 500px;
3737

3838
@media screen and (min-width: 500px) {

src/pages/Home.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const Home = () => {
4747
<section aria-label="콘텐츠 배너">
4848
<Banner />
4949
</section>
50-
<section className="mt-5 w-full" aria-label="빠른 대화">
50+
<section className="mt-5" aria-label="빠른 대화">
5151
<div className="w-full px-[20px] py-[13px]">
5252
<SubTitle mode="빠른대화" />
5353
</div>
@@ -56,7 +56,7 @@ const Home = () => {
5656
</div>
5757
</section>
5858
<section aria-label="친구 목록">
59-
<div className="w-full px-[20px] py-[21px]">
59+
<div className="px-[20px] py-[21px]">
6060
<SubTitle mode="친구목록" />
6161
</div>
6262
<div className="flex justify-center pb-[127px]">

0 commit comments

Comments
 (0)