Skip to content

Commit cd0691d

Browse files
committed
fix: friend_list css 깨짐 수정
1 parent 5a4e27e commit cd0691d

1 file changed

Lines changed: 53 additions & 13 deletions

File tree

static/css/friend_list.css

Lines changed: 53 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -361,29 +361,69 @@
361361
}
362362
}
363363

364-
@media (max-width: 600px) {
365-
.homepage-container {
366-
min-width: 200px;
364+
@media (max-width: 400px) {
365+
.slider-container {
366+
max-width: 90vw;
367+
padding: 0 10px;
368+
overflow-x: auto;
367369
}
368370

369-
.slider-container {
370-
max-width: 35%;
371+
.slider {
372+
display: flex;
373+
gap: 8px;
374+
justify-content: flex-start;
375+
overflow-x: auto;
376+
scroll-snap-type: x mandatory;
377+
white-space: nowrap;
378+
padding: 10px 0;
379+
}
380+
381+
.homepage-container {
382+
min-width: 160px;
383+
max-width: 75%;
384+
flex: 0 0 auto;
385+
margin: 10px;
386+
padding: 15px;
387+
scroll-snap-align: center;
388+
text-align: center;
389+
word-wrap: break-word;
390+
overflow-wrap: break-word;
391+
display: flex;
392+
flex-direction: column;
393+
align-items: center;
371394
}
372395

373396
.friend-profile {
374-
width: 100px;
375-
height: 100px;
397+
width: 80px;
398+
height: 80px;
399+
}
400+
401+
.home-description {
402+
font-size: 0.75rem;
403+
word-wrap: break-word;
404+
overflow-wrap: break-word;
405+
max-width: 90%;
406+
white-space: normal;
407+
text-align: center;
408+
line-height: 1.2;
409+
display: block;
410+
overflow: hidden;
376411
}
377412

378-
.home-description{
379-
font-size: 0.8rem;
413+
.slider-btn {
414+
width: 30px;
415+
height: 30px;
416+
position: absolute;
417+
top: 50%;
418+
transform: translateY(-50%);
419+
z-index: 10;
380420
}
381421

382-
.move-detail-btn, .move-write-btn {
383-
padding: 8px 15px;
422+
.slider-btn.left-btn {
423+
left: 5px;
384424
}
385425

386-
.homepage-container.active {
387-
transform: none;
426+
.slider-btn.right-btn {
427+
right: 5px;
388428
}
389429
}

0 commit comments

Comments
 (0)