Skip to content

Commit

Permalink
Design: 모바일 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
MEGUMMY1 committed Apr 28, 2024
1 parent 637015d commit 0c6cfc4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 11 deletions.
24 changes: 18 additions & 6 deletions src/Components/FolderMain/FolderMain.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,22 @@ function FolderMain() {
)}
</div>
<div className={styles.main_sub_nav}>
<p>{activeButton}</p>
<p className={styles.active_button}>{activeButton}</p>
{activeButton !== "전체" && (
<div className={styles.main_sub_nav_side}>
<button
className={styles.main_sub_nav_side_items}
id='shareFolderBtn'
onClick={() => openModal("share")}
>
<img src={share} width={18} height={18} alt='폴더 공유' />
공유
<img
src={share}
width={18}
height={18}
alt='폴더 공유'
className={styles.icons}
/>
<span className={styles.icon_text}>공유</span>
</button>
{modalType === "share" && (
<Modal
Expand All @@ -124,8 +130,14 @@ function FolderMain() {
className={styles.main_sub_nav_side_items}
onClick={() => openModal("edit")}
>
<img src={pen} width={18} height={18} alt='폴더 이름 변경' />
이름 변경
<img
src={pen}
width={18}
height={18}
alt='폴더 이름 변경'
className={styles.icons}
/>
<span className={styles.icon_text}>이름 변경</span>
</button>
{modalType === "edit" && (
<Modal
Expand All @@ -143,7 +155,7 @@ function FolderMain() {
onClick={() => openModal("deleteFolder")}
>
<img src={delete_icon} width={18} height={18} alt='폴더 삭제' />
삭제
<span className={styles.icon_text}>삭제</span>
</button>
{modalType === "deleteFolder" && (
<Modal
Expand Down
24 changes: 19 additions & 5 deletions src/Components/FolderMain/FolderMain.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../../global.css';
@import '../../reset.css';
@import "../../global.css";
@import "../../reset.css";

/* m a i n */
.main {
Expand Down Expand Up @@ -118,9 +118,6 @@ input:focus {
display: flex;
align-items: center;
gap: 4px;
color: #9fa6b2;
font-size: 14px;
font-weight: 600;
cursor: pointer;
}

Expand Down Expand Up @@ -150,6 +147,12 @@ input:focus {
background-color: var(--gray4);
}

.icon_text {
color: #9fa6b2;
font-size: 14px;
font-weight: 500;
}

/* tablet */
@media (min-width: 768px) and (max-width: 1199px) {
.section {
Expand Down Expand Up @@ -177,4 +180,15 @@ input:focus {
border: 1px solid var(--white);
font-size: 16px;
}

.active_button {
width: 160px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.icon_text {
display: none;
}
}

0 comments on commit 0c6cfc4

Please sign in to comment.