feat(project): add group collapse and UI polish

This commit is contained in:
2026-10-03 05:26:41 +09:00
parent 44f6ca4ef7
commit 494d84f7c2
13 changed files with 306 additions and 51 deletions
+40 -12
View File
@@ -95,7 +95,8 @@
뷰포트보다 48px 넓어진다. 그러면 우측 "내 업무" 패널의 오른쪽 끝(=스크롤
막대 자리)이 화면 밖으로 밀려나 막대가 절대 안 보인다(헤드리스 크롬 좌표
덤프로 확인: 패널 right=1917 > viewport 1911). */
.erp-page:has(> .pj-wrap) { max-width: none; box-sizing: border-box; }
.erp-page:has(> .pj-wrap) { max-width: none; box-sizing: border-box; padding-left: 8px; padding-right: 8px; }
.erp-page > .pj-wrap { padding-left: 0; padding-right: 0; }
.pj-project-view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pj-project-view .pj-layout { flex: 1 1 auto; min-height: 0; }
/* grid-template-rows: minmax(0,1fr) 이 없으면 암시적 행이 "auto"(내용 크기)로
@@ -106,9 +107,12 @@
/* 우측에 항상 떠 있던 "내 업무" 칸은 없앴다 — 좌측 사이드바의 접이식
"내 업무" 메뉴(.pj-mytasks-panel)가 그 역할을 대신한다. 그래서 2열. */
.pj-layout {
display: grid; grid-template-columns: 250px 1fr; grid-template-rows: minmax(0, 1fr);
gap: 22px; height: 100%; min-height: 0; align-items: stretch;
position: relative; display: grid; grid-template-columns: var(--pj-side-w, 250px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
gap: 8px; height: 100%; min-height: 0; align-items: stretch;
}
.pj-side-resizer { position: absolute; top: 0; bottom: 0; left: var(--pj-side-w, 250px); width: 8px; padding: 0; border: 0; background: transparent; cursor: col-resize; z-index: 12; }
.pj-side-resizer:hover, .pj-side-resizer:focus-visible, .pj-side-resizer.is-dragging { background: var(--pj-accent-tint); outline: none; }
html.pj-side-resizing, html.pj-side-resizing * { cursor: col-resize !important; user-select: none !important; }
.pj-side { min-width: 0; min-height: 0; height: 100%; overflow-y: auto; padding-right: 14px; }
.pj-main { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; }
@@ -131,12 +135,14 @@
.pj-vbar-thumb:hover, .pj-vbar-thumb.is-dragging { background: #8f949e; }
.pj-vbar-thumb.is-dragging { cursor: grabbing; }
@media (max-width: 1280px) {
.pj-layout { grid-template-columns: 220px 1fr; }
.pj-layout { grid-template-columns: var(--pj-side-w, 220px) minmax(0, 1fr); }
.pj-side-resizer { left: var(--pj-side-w, 220px); }
}
@media (max-width: 900px) {
.erp-page:has(> .pj-wrap) { max-width: 1550px; }
.erp-page > .pj-wrap.pj-project-view { display: block; }
.pj-layout { display: block; height: auto; }
.pj-side-resizer { display: none; }
.pj-side, .pj-main { height: auto; overflow: visible; }
}
@@ -360,6 +366,19 @@
.pj-col-actions .pj-icon-btn { width: 28px; height: 28px; color: var(--pj-ink-soft); }
.pj-col-actions .pj-icon-btn .material-symbols-outlined { font-size: 20px; }
.pj-col-actions .pj-icon-btn:hover { color: var(--pj-ink); background: rgba(0,0,0,.06); }
.pj-col-collapse svg { width: 18px; height: 18px; }
.pj-col.is-collapsed { flex-basis: 48px; width: 48px; padding: 0; }
.pj-col.is-collapsed .pj-col-head { flex-direction: column; gap: 10px; padding: 10px 8px; margin: 0; border: 0; border-radius: 5px; }
.pj-col.is-collapsed .pj-col-name { writing-mode: vertical-rl; text-orientation: mixed; overflow-wrap: anywhere; max-height: 240px; }
.pj-col.is-collapsed .pj-col-count { writing-mode: vertical-rl; }
.pj-col.is-collapsed .pj-col-body,
.pj-col.is-collapsed .pj-col-addtask,
.pj-col.is-collapsed .pj-col-assignee,
.pj-col.is-collapsed .pj-chip,
.pj-col.is-collapsed .pj-col-actions > :not(.pj-col-collapse) { display: none; }
.pj-col.is-collapsed .pj-col-head.pj-col-head-colored { margin: 0; }
.pj-col.is-collapsed .pj-col-actions { order: -1; margin: 0; }
.pj-col.is-collapsed .pj-col-collapse svg { transform: rotate(180deg); }
/* 컬럼 안의 카드가 많아지면 보드 전체가 아니라 이 컬럼만 세로로 스크롤한다
— 그래야 가로로 늘어난 다른 세션들이 화면 밖으로 밀려나지 않는다. */
.pj-col-body {
@@ -937,10 +956,10 @@ html.pj-ui-scale #pj-timeline { zoom: calc(1 / var(--pj-z)); --tz: var(--pj-z);
.pj-comment-body a:hover, .pj-chat-bubble a:hover { color: #0b3f99; }
.pj-comment-form { display: flex; align-items: center; gap: 6px; }
.pj-comment-form input { flex: 1; padding: 7px 10px; border: 1px solid #d8dce2; border-radius: 8px; font-size: var(--pj-text-size); font-family: inherit; box-sizing: border-box; line-height: var(--pj-text-leading); font-weight: 400; }
/* 댓글·답글 여러 줄 입력칸 — Enter 등록 · Shift+Enter 줄바꿈, 글 줄 수만큼 늘어남(project.js fitComposer, 최대 160px) */
/* 댓글·답글 입력칸은 70px 고정, 긴 글은 칸 안에서 스크롤한다. */
.pj-comment-form textarea.pj-composer-ta {
flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid #d8dce2; border-radius: 8px; font-size: var(--pj-text-size); font-family: inherit;
line-height: var(--pj-text-leading); box-sizing: border-box; resize: none; overflow-y: hidden; max-height: 160px; align-self: center; font-weight: 400;
line-height: var(--pj-text-leading); box-sizing: border-box; resize: none; overflow-y: auto; height: 70px; min-height: 70px; max-height: 70px; align-self: center; font-weight: 400;
}
.pj-comment-form textarea.pj-composer-ta:focus { outline: none; border-color: #a9aeb6; }
.pj-comment-acts { display: inline-flex; gap: 1px; flex: 0 0 auto; }
@@ -1583,7 +1602,8 @@ img.pj-person-ic { width: 22px; height: 22px; }
}
.pj-side-navlink:hover { background: #f1f2f4; }
.pj-side-navic { font-size: 20px; color: #5f6368; flex: 0 0 auto; }
.pj-side-navtext { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-side-navtext { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-side-navlink { box-sizing: border-box; }
.pj-side-navbadge {
flex: 0 0 auto; min-width: 18px; padding: 1px 6px; border-radius: 999px;
background: #fbe3df; color: #c22b10; font-size: 11px; font-weight: 700; text-align: center;
@@ -2163,8 +2183,9 @@ html.pj-ui-scale .pj-modal-chat { max-height: calc(92vh / var(--pj-z)); }
}
.pj-goal-colresize:hover::after, .pj-goal-colresize.is-dragging::after { background: var(--pj-accent); }
/* 월 칸은 overflow: hidden(접기 애니메이션)이라 칸 밖으로 나간 손잡이가 잘린다 — 칸 안쪽 오른쪽 끝에 둔다 */
.pj-goal-table thead th.pj-goal-m .pj-goal-colresize { right: 0; width: 7px; }
.pj-goal-table thead th.pj-goal-m .pj-goal-colresize::after { left: auto; right: 1px; }
:where(.pj-goal-table th, .pj-goal-table td) { position: relative; }
.pj-goal-table :is(th, td).pj-goal-m .pj-goal-colresize { right: 0; width: 7px; }
.pj-goal-table :is(th, td).pj-goal-m .pj-goal-colresize::after { left: auto; right: 1px; }
html.pj-goal-resizing, html.pj-goal-resizing * { cursor: col-resize !important; user-select: none !important; }
.pj-goal-table tbody th { padding: 7px 8px; vertical-align: middle; } /* 왼쪽 이름은 세로 가운데 */
@@ -2698,9 +2719,16 @@ html[data-pj-font="nanum-square-round"] { --pj-font: "NanumSquareRound", var(--p
.pj-options-dialog p { font-size: 12px; color: var(--pj-ink-soft); }
.pj-options-dialog .pj-options-error { color: #c22b10; }
.pj-options-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.pj-goal-format { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--pj-border); background: #fff; font-size: 12px; }
.pj-goal-format > span { color: var(--pj-ink-soft); }
.pj-goal-format { position: fixed; z-index: 1200; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 8px 10px; max-width: calc(100vw - 16px); box-sizing: border-box; border: 1px solid var(--pj-border); border-radius: 8px; box-shadow: 0 4px 16px #0002; background: #fff; color: var(--pj-ink); font-family: var(--pj-font); font-size: 12px; }
.pj-goal-format[hidden], .pj-goal-color-grid[hidden] { display: none; }
.pj-goal-format label { display: flex; align-items: center; gap: 6px; }
.pj-goal-format select { padding: 4px; border: 1px solid #d8dce2; border-radius: 4px; font: inherit; }
.pj-goal-format input[type="color"] { width: 30px; height: 28px; padding: 2px; border: 1px solid #d8dce2; border-radius: 4px; background: #fff; cursor: pointer; }
.pj-goal-color-picker { position: relative; display: flex; align-items: center; gap: 6px; }
.pj-goal-color-toggle { width: 30px; height: 28px; padding: 4px; border: 1px solid #d8dce2; border-radius: 4px; background: #fff; cursor: pointer; }
.pj-goal-color-preview { display: block; width: 100%; height: 100%; background: #000; box-shadow: inset 0 0 0 1px #0002; }
.pj-goal-color-grid { position: absolute; bottom: calc(100% + 8px); left: 0; display: grid; grid-template-columns: repeat(6, 26px); gap: 6px; padding: 8px; background: #fff; border: 1px solid var(--pj-border); border-radius: 6px; box-shadow: 0 4px 12px #0002; }
.pj-goal-color-grid.is-below { bottom: auto; top: calc(100% + 8px); }
.pj-goal-text-swatch { width: 26px; height: 26px; border: 1px solid #0003; border-radius: 3px; background: var(--swatch); cursor: pointer; padding: 0; }
.pj-goal-text-swatch[aria-pressed="true"] { outline: 2px solid var(--pj-accent); outline-offset: 2px; }
.pj-goal-text-swatch:focus-visible { outline: 2px solid var(--pj-accent); outline-offset: 2px; }
.pj-goal-format :disabled { opacity: .45; cursor: default; }