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

Project Detail: 이미지 슬라이더 1440px 이상에서 치우침 현상 및 줄 넘어감 수정 #55

Merged
merged 2 commits into from
Nov 3, 2023
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
10 changes: 9 additions & 1 deletion WISCOM/src/components/Project/ImageSliderStyle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export const ImageSliderContainer = styled.div`
position: relative; /* 부모 클래스에 relative 포지션을 추가 */
margin-bottom: 200px;

@media (min-width: 1441px) {
margin: 0 auto; /* 정렬 필수!!!!! */
margin-bottom: 100px;
}

@media (max-width: 425px) {
margin-bottom: 100px;
}
Expand All @@ -30,7 +35,10 @@ export const SliderBannerWrap = styled.div`
margin-right: 10%;

justify-content: center;
// margin: 0 auto; /* 필수!!!!! */

@media (min-width: 1440px) {
width: 1400px;
}
`;

export const SlideBanner = styled.div`
Expand Down
12 changes: 9 additions & 3 deletions WISCOM/src/components/Project/ProjectStyle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,24 @@ export const Text = styled.div`
margin-left: 8rem;
padding-left: 5rem;

white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

@media (max-width: 1030px) {
font-size: 95%;
}

@media screen and (max-width: 814px) {
margin-left: 0rem;
@media screen (min-width: 768px) and (max-width: 814px) {
text-align: center;
padding-left: 0rem;
margin-left: 0rem;
}

@media (max-width: 768px) {
font-size: 66%;
padding-left: 0rem;
margin-left: 0rem;
text-align: center;
}
`;

Expand Down