Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,6 @@
overflow-x: hidden;
}

/* TeamHeader 패딩 wrapper (모바일/태블릿만) */
.teamHeaderPad {
padding: 0;
}
@media (max-width: 1024px) {
.teamHeaderPad {
padding: 0 12px;
box-sizing: border-box;
}
}

/* ✅ TeamHeader: PC에서만 가운데 정렬 */
@media (min-width: 1025px) {
:global(.TeamHeader-module__H3kcRq__container) {
width: 100%;
max-width: 1200px;
margin-left: auto !important;
margin-right: auto !important;
}
}
@media (max-width: 1024px) {
:global(.TeamHeader-module__H3kcRq__container) {
margin-left: 0 !important;
margin-right: 0 !important;
max-width: none !important;
}
}

/* ===== Desktop Sidebar ===== */
.desktopSidebar {
flex-shrink: 0;
Expand Down Expand Up @@ -70,37 +42,10 @@
display: none;
}

/* ✅ 1024px 이상에서는 데스크탑 Sidebar가 보이도록 강제 */
@media (min-width: 1024px) and (max-width: 1199px) {
.desktopSidebar {
display: flex !important;
}
.mobileGnb {
display: none !important;
}
:global([class*='Sidebar-module__'][class*='sidebar']) {
display: flex !important;
}
}

@media (max-width: 1023px) {
.desktopSidebar {
display: none;
}
.mobileGnb {
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
background: var(--color-background-inverse, #fff);
padding-top: env(safe-area-inset-top);
}
}

/* ===== Main contents ===== */
.mainContents {
flex: 1;
margin-left: 27px;
display: flex;
justify-content: center;
padding: 120px 85px 80px 0px;
Expand All @@ -110,7 +55,7 @@
min-width: 0;
}

@media (max-width: 1023px) {
@media (max-width: 1199px) {
.mainContents {
width: 100%;
padding: 0;
Expand Down Expand Up @@ -203,7 +148,7 @@
min-height: 768px;
}

@media (min-width: 744px) and (max-width: 1024px) {
@media (min-width: 744px) and (max-width: 1199px) {
.rightWrap {
min-height: 800px;
}
Expand Down Expand Up @@ -289,15 +234,15 @@
position: absolute;
z-index: 4;
}
@media (min-width: 1025px) {
@media (min-width: 1200px) {
.fab {
top: 262px;
right: -28px;
bottom: auto;
left: auto;
}
}
@media (max-width: 1024px) {
@media (max-width: 1199px) {
.fab {
right: 14px;
bottom: 21px;
Expand All @@ -318,7 +263,7 @@
}

/* ✅ 모바일/태블릿: 투두카드 폭 고정 */
@media (max-width: 1024px) {
@media (max-width: 1199px) {
.mobileTodoRow {
display: flex !important;
align-items: center !important;
Expand Down Expand Up @@ -348,7 +293,7 @@
}
}

@media (min-width: 744px) and (max-width: 1024px) {
@media (min-width: 744px) and (max-width: 1199px) {
.todoCardWrap {
width: 240px !important;
flex: 0 0 240px !important;
Expand All @@ -357,7 +302,7 @@
}
}

@media (max-width: 1024px) {
@media (max-width: 1199px) {
.todoCardShell,
.todoCardShellInner {
width: 100% !important;
Expand Down Expand Up @@ -404,10 +349,10 @@
}

/* Tablet/Mobile */
@media (max-width: 1024px) {
@media (max-width: 1199px) {
.stage {
width: 100%;
max-width: 1024px;
max-width: 1199px;
margin-top: 32px;
}

Expand Down Expand Up @@ -444,7 +389,7 @@

.rightWrap {
width: 100%;
max-width: 1024px;
max-width: none;
flex: 0 0 auto;
background: #ffffff;
border-radius: 0;
Expand Down Expand Up @@ -488,7 +433,7 @@
display: none;
}

@media (max-width: 1024px) {
@media (max-width: 1199px) {
.todoArrowBtn {
display: inline-flex;
align-items: center;
Expand Down Expand Up @@ -696,7 +641,7 @@
}

/* ✅ 모바일/태블릿: 애니메이션 제거 + 전체 화면 */
@media (max-width: 1024px) {
@media (max-width: 1199px) {
.detailOverlay {
left: 0;
right: 0;
Expand All @@ -723,7 +668,7 @@
}
}

@media (max-width: 1024px) {
@media (max-width: 1199px) {
.taskMenu {
top: 52px !important;
right: 0px !important;
Expand Down Expand Up @@ -804,7 +749,7 @@
}

/* ===== 모바일/태블릿: 팀선택(hover) 시 내용이 박스 밖으로 튀는 문제 방지 ===== */
@media (max-width: 1024px) {
@media (max-width: 1199px) {
:global([class*='SidebarTeamSelect-module__'] *),
:global([class*='SidebarButton-module__'] *),
:global([class*='SidebarAddButton-module__'] *) {
Expand Down Expand Up @@ -841,7 +786,7 @@
}

/* ✅ 모바일/태블릿: 케밥 "버튼은 유지", 아이콘만 숨김 (드롭다운은 클릭으로 뜸) */
@media (max-width: 1024px) {
@media (max-width: 1199px) {
/* TodoCard / TaskListItem 케밥 버튼 내부의 svg/img만 투명 */
:global([class*='TodoCard-module__'] svg),
:global([class*='TodoCard-module__'] img),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ async function fetchJson<T>(
const method = (init?.method ?? 'GET').toUpperCase();
const isBodyless = method === 'GET' || method === 'HEAD' || method === 'DELETE';

const res = await fetch(proxy(withTeam(teamId, path)), {
const url =
path === 'user'
? proxy(path) // ✅ user는 teamId 없이
: proxy(withTeam(teamId, path));

const res = await fetch(url, {
...init,
method,
body: isBodyless ? undefined : init?.body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}

/* 태블릿 */
@media (min-width: 768px) and (max-width: 1279px) {
@media (min-width: 768px) and (max-width: 1200px) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

미디어 쿼리 max-width 값을 1199px로 수정하는 것을 제안합니다. 다른 CSS 파일에서는 데스크탑 브레이크포인트를 1200px부터 시작(min-width: 1200px)하고, 태블릿은 1199px까지(max-width: 1199px)로 정의하고 있습니다. max-width: 1200px를 사용하면 1200px 너비에서 데스크탑과 태블릿 스타일이 중복 적용되어 예기치 않은 레이아웃 문제가 발생할 수 있습니다. 일관성을 유지하고 잠재적인 스타일 충돌을 방지하기 위해 1199px로 변경하는 것이 좋습니다.

Suggested change
@media (min-width: 768px) and (max-width: 1200px) {
@media (min-width: 768px) and (max-width: 1199px) {

.tabletWrapper {
display: block;
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/(root)/[teamid]/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
flex-shrink: 0;
}
/* Tablet styles */
@media (min-width: 768px) and (max-width: 1279px) {
@media (min-width: 768px) and (max-width: 1200px) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

미디어 쿼리 max-width 값을 1199px로 수정하는 것을 제안합니다. 다른 CSS 파일에서는 데스크탑 브레이크포인트를 1200px부터 시작(min-width: 1200px)하고, 태블릿은 1199px까지(max-width: 1199px)로 정의하고 있습니다. max-width: 1200px를 사용하면 1200px 너비에서 데스크탑과 태블릿 스타일이 중복 적용되어 예기치 않은 레이아웃 문제가 발생할 수 있습니다. 일관성을 유지하고 잠재적인 스타일 충돌을 방지하기 위해 1199px로 변경하는 것이 좋습니다.

Suggested change
@media (min-width: 768px) and (max-width: 1200px) {
@media (min-width: 768px) and (max-width: 1199px) {

.page {
flex-direction: column;
}
Expand Down Expand Up @@ -71,7 +71,7 @@
}

/* Tablet specific rules for kanbanResponsiveContainer */
@media (min-width: 768px) and (max-width: 1279px) {
@media (min-width: 768px) and (max-width: 1200px) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

미디어 쿼리 max-width 값을 1199px로 수정하는 것을 제안합니다. 다른 CSS 파일에서는 데스크탑 브레이크포인트를 1200px부터 시작(min-width: 1200px)하고, 태블릿은 1199px까지(max-width: 1199px)로 정의하고 있습니다. max-width: 1200px를 사용하면 1200px 너비에서 데스크탑과 태블릿 스타일이 중복 적용되어 예기치 않은 레이아웃 문제가 발생할 수 있습니다. 일관성을 유지하고 잠재적인 스타일 충돌을 방지하기 위해 1199px로 변경하는 것이 좋습니다.

Suggested change
@media (min-width: 768px) and (max-width: 1200px) {
@media (min-width: 768px) and (max-width: 1199px) {

.kanbanResponsiveContainer {
flex-wrap: nowrap; /* Prevent wrapping on tablet */
justify-content: space-between; /* Distribute items evenly */
Expand Down
2 changes: 1 addition & 1 deletion src/app/(root)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
export default function RootLayout({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
const router = useRouter();
const { data: user, isPending } = useCurrentUserQuery({ retry: false });

Check warning on line 14 in src/app/(root)/layout.tsx

View workflow job for this annotation

GitHub Actions / build

'isPending' is assigned a value but never used

// user가 존재하면 로그인, 없으면 비로그인
// isPending 중엔도 캐시된 데이터가 있으면 user는 정의되므로
Expand All @@ -20,7 +20,7 @@
const isLanding = pathname === '/';

// 자체 사이드바가 없는 페이지에서만 root layout 사이드바 표시
const rootSidebarPaths = ['/', '/boards', '/mypage'];
const rootSidebarPaths = ['/', '/boards', '/mypage', '/myhistory'];
const showRootSidebar = rootSidebarPaths.some(
(p) => pathname === p || pathname.startsWith(p + '/'),
);
Expand Down
8 changes: 5 additions & 3 deletions src/components/team-header/TeamHeader.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.container {
position: relative;
overflow: hidden;

height: 64px;
width: 1120px;
max-width: 100%;
Expand Down Expand Up @@ -156,13 +155,16 @@
line-height: 1;
}

@media (min-width: 1024px) {
@media (min-width: 1200px) {
.patternWrap {
display: block;
}
.container[data-variant='list'] {
margin: 0 auto;
}
}

@media (min-width: 744px) and (max-width: 1023px) {
@media (min-width: 744px) and (max-width: 1199px) {
.container[data-variant='team'] .teamLeftGroup {
height: 32px;
max-width: 203px;
Expand Down
Loading