Skip to content

Commit

Permalink
Merge pull request #1383 from 42organization/1358-feat-party-detail-r…
Browse files Browse the repository at this point in the history
…oom의-css-변경

[Fix] join, leave 버튼 위치 수정
  • Loading branch information
contemplation-person authored Apr 10, 2024
2 parents 849331f + ee42353 commit be7c7af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion components/party/roomDetail/PartyDetailProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,25 +123,29 @@ function ButtonHandler({
<></>
) : !myNickname ? (
<div className={styles.btnContainer}>
<div></div>
<PartyRoomDetailButton.JoinRoom
roomId={roomId}
fetchRoomDetail={fetchRoomDetail}
/>
</div>
) : hostNickname !== myNickname ? (
<div className={styles.btnContainer}>
<div></div>
<PartyRoomDetailButton.LeaveRoom
roomId={roomId}
fetchRoomDetail={fetchRoomDetail}
/>
</div>
) : (
<div className={styles.btnContainer}>
{currentPeople >= minPeople && currentPeople !== 1 && (
{currentPeople >= minPeople && currentPeople !== 1 ? (
<PartyRoomDetailButton.StartRoom
roomId={roomId}
fetchRoomDetail={fetchRoomDetail}
/>
) : (
<div></div>
)}
<PartyRoomDetailButton.LeaveRoom
roomId={roomId}
Expand Down
2 changes: 1 addition & 1 deletion styles/party/PartyDetailRoom.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ $detailCommonRem: 1rem;
.joinBtn {
width: 49.5%;
height: 3rem;
margin-bottom: $detailCommonRem;
margin-bottom: $detailCommonRem * 0.3;
font-family: $common-font;
font-size: $big-font;
font-weight: $detail-btn-weight;
Expand Down

0 comments on commit be7c7af

Please sign in to comment.