feat(project): 보드 가로 스크롤 · 카드 인라인 편집 · 내 업무 사이드 메뉴 · @태그
- 보드: 매이슨리 절대배치 제거 → 아사나식 flex 가로 배치. 세션이 늘어나면
아래로 접히지 않고 계속 오른쪽으로 이어지고, 보드가 가로로 스크롤된다
(막대는 attachHScrollIndicator 가 직접 그린다). 긴 세션은 컬럼 안에서 세로 스크롤.
- 카드: 담당자/마감일을 클릭하면 팝업을 열지 않고 그 자리에서 바꾼다.
값이 없는 칩은 카드 호버 시 흐리게 나타나 바로 지정할 수 있다.
- 내 업무: 화면 오른쪽 상시 패널을 없애고 좌측 사이드바의 접이식 메뉴로 이전
(기본 접힘, 업무를 고르면 팝업이 열리며 다시 접힘). 레이아웃 3열 → 2열.
- 설명란: 웹주소를 붙여넣으면 자동 링크(target=_blank), 클릭하면 새 탭으로 연다.
contenteditable 은 브라우저가 링크를 기본으로 열지 않아 클릭을 직접 받는다.
- @태그: 설명란·댓글에서 @ 로 멤버를 고른다. 설명란은 멘션 칩(data-email),
댓글은 화면이 고른 이메일을 함께 전송. 서버는 설명란의 경우 저장될 HTML 에서
직접 이메일을 뽑는다(화면이 보낸 목록을 믿지 않는다).
태그된 사람은 수신함(/project/inbox)에서 그 업무를 리스트로 본다.
DB: 마이그레이션 006(task_mentions) 신규 — 배포 시 적용 필요.
미적용 환경에서도 화면이 죽지 않게 멘션 조회/기록은 모두 감쌌다.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+115
-24
@@ -177,13 +177,14 @@
|
||||
(퍼센트 높이는 트랙이 auto면 무시되고 다시 내용 크기로 되돌아간다) —
|
||||
그래서 내 업무/좌측 목록이 제 안에서 스크롤 못 하고 카드 내용만큼
|
||||
늘어나 버렸다. 1fr 로 행 자체를 컨테이너 높이만큼 확정 지어야 한다. */
|
||||
/* 우측에 항상 떠 있던 "내 업무" 칸은 없앴다 — 좌측 사이드바의 접이식
|
||||
"내 업무" 메뉴(.pj-mytasks-panel)가 그 역할을 대신한다. 그래서 2열. */
|
||||
.pj-layout {
|
||||
display: grid; grid-template-columns: 230px 1fr 300px; grid-template-rows: minmax(0, 1fr);
|
||||
display: grid; grid-template-columns: 250px 1fr; grid-template-rows: minmax(0, 1fr);
|
||||
gap: 22px; height: 100%; min-height: 0; align-items: stretch;
|
||||
}
|
||||
.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; }
|
||||
.pj-project-mytasks { min-width: 0; min-height: 0; width: 300px; height: 100%; overflow-y: auto; padding-right: 14px; }
|
||||
|
||||
/* ── 자체 스크롤 패널(내 업무/좌측 목록/홈 프로젝트 목록/보드)의 스크롤 막대 ──
|
||||
윈도우/엣지가 오버레이(자동숨김) 스크롤바를 쓰는 환경에선 네이티브 막대가
|
||||
@@ -204,8 +205,7 @@
|
||||
.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: 230px 1fr; }
|
||||
.pj-project-mytasks { display: none; }
|
||||
.pj-layout { grid-template-columns: 220px 1fr; }
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.erp-page:has(> .pj-wrap) { max-width: 1550px; }
|
||||
@@ -307,31 +307,36 @@
|
||||
transform-origin: top center;
|
||||
}
|
||||
|
||||
/* ── 보드(칸반) — 최대 4열 매이슨리(masonry). CSS Grid로 4열을 만들면 같은
|
||||
행의 한 칸만 카드가 많아도 그 행 전체 높이가 맞춰져 빈 칸이 생긴다 —
|
||||
그래서 각 세션을 JS(layoutMasonry)로 절대배치해 열은 고정(왼쪽부터
|
||||
순서대로 배정)하되 높이는 열마다 독립적으로 쌓이게 한다(같은 열의 다음
|
||||
세션이 바로 위 세션 아래에 붙는다). 세션이 많아지면 이 영역 안에서만
|
||||
세로 스크롤되고, "+ 세션 추가" 버튼은 이 영역 밖(pj-board-toolbar)에
|
||||
있어 스크롤과 무관하게 항상 보인다. ── */
|
||||
/* ── 보드(칸반) — 아사나식. 세션은 가로로 한 줄에 나란히 놓이고, 화면을
|
||||
넘치면 아래로 접히지 않고 보드가 가로로 스크롤된다. "+ 세션 추가" 버튼은
|
||||
스크롤 영역 밖(pj-board-toolbar)에 있어 항상 보인다. ── */
|
||||
.pj-board-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; flex: none; }
|
||||
.pj-board-toolbar .pj-add-stage { width: auto; padding: 8px 18px; }
|
||||
/* pj-board = 스크롤 뷰포트(남은 세로 공간을 그대로 씀, 부모가 이미 flex로
|
||||
높이를 정해준다). pj-board-canvas = 매이슨리 절대배치 캔버스 — 스크롤
|
||||
컨테이너 자체 높이와 콘텐츠(캔버스) 높이 계산을 분리해야 스크롤이
|
||||
올바르게 생긴다(캔버스만 커지고 뷰포트는 flex 크기를 유지). */
|
||||
/* 네이티브 스크롤바는 숨기고 JS 가 그리는 막대를 쓴다(위 .pj-vbar-* 참고).
|
||||
막대 자리는 padding-right 14px — 매이슨리 열 너비는 canvas(=padding 안쪽)
|
||||
기준으로 계산되므로 열이 막대에 가려지지 않는다. */
|
||||
/* pj-board = 가로 스크롤 뷰포트(남은 세로 공간을 그대로 씀, 부모가 이미
|
||||
flex 로 높이를 정해준다). pj-board-canvas = 세션을 가로로 늘어놓는 flex
|
||||
컨테이너 — width:max-content 라서 세션이 늘어나는 만큼 캔버스가 넓어지고
|
||||
뷰포트(pj-board)만 스크롤한다.
|
||||
네이티브 스크롤바는 숨기고(위 .pj-vbar-* 와 같은 이유) JS 가 그리는
|
||||
가로 막대(.pj-hbar / attachHScrollIndicator)를 보드 아래에 둔다. */
|
||||
.pj-board {
|
||||
flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
|
||||
padding-right: 14px; padding-bottom: 8px;
|
||||
flex: 1 1 auto; min-height: 0; min-width: 0;
|
||||
overflow-x: auto; overflow-y: hidden;
|
||||
padding-right: 14px; padding-bottom: 4px;
|
||||
}
|
||||
.pj-board-canvas {
|
||||
display: flex; align-items: flex-start; gap: 16px;
|
||||
height: 100%; min-height: 0; width: max-content; min-width: 100%;
|
||||
}
|
||||
.pj-board-canvas { position: relative; }
|
||||
/* 세션(보드 컬럼) — 배경이 페이지와 거의 같으면 구분이 안 되므로(#f6f5fb ≈
|
||||
흰 배경) 뚜렷한 회색 톤 + 테두리로 아사나처럼 컬럼 경계를 분명히 준다.
|
||||
position/width/left/top 은 layoutMasonry 가 매번 인라인으로 계산해 준다. */
|
||||
.pj-col { position: absolute; background: #eef0f4; border: 1px solid #e2e4ea; border-radius: 14px; padding: 12px; box-sizing: border-box; }
|
||||
너비는 고정(300px), 높이는 내용만큼 — 보드 높이를 넘으면 그 컬럼 안에서
|
||||
세로 스크롤(.pj-col-body). */
|
||||
.pj-col {
|
||||
flex: 0 0 300px; width: 300px; max-height: 100%;
|
||||
display: flex; flex-direction: column; min-height: 0;
|
||||
background: #eef0f4; border: 1px solid #e2e4ea; border-radius: 14px;
|
||||
padding: 12px; box-sizing: border-box;
|
||||
}
|
||||
.pj-empty { position: static; }
|
||||
/* 완료로 지정된 세션 — 반투명 + 보드 끝으로(정렬은 JS 쪽 comparator 담당) */
|
||||
.pj-col.pj-col-done { opacity: .55; }
|
||||
@@ -357,7 +362,14 @@
|
||||
background: #fff; border: 1px solid #e2e4ea; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px;
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.pj-col-body { display: flex; flex-direction: column; gap: 8px; min-height: 40px; border-radius: 8px; padding-top: 8px; }
|
||||
/* 컬럼 안의 카드가 많아지면 보드 전체가 아니라 이 컬럼만 세로로 스크롤한다
|
||||
— 그래야 가로로 늘어난 다른 세션들이 화면 밖으로 밀려나지 않는다. */
|
||||
.pj-col-body {
|
||||
display: flex; flex-direction: column; gap: 8px; min-height: 40px;
|
||||
border-radius: 8px; padding-top: 8px;
|
||||
flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
|
||||
}
|
||||
.pj-col-head { flex: none; }
|
||||
.pj-col-body.is-over { background: var(--pj-accent-tint); outline: 2px dashed var(--pj-accent); }
|
||||
.pj-card {
|
||||
background: #fff; border: 1px solid var(--pj-border); border-radius: var(--pj-card-radius);
|
||||
@@ -1004,3 +1016,82 @@ label.pj-desc-fmtbtn { line-height: 26px; }
|
||||
.pj-dash-charts .pj-dash-card:nth-child(3) { animation-delay: .12s; }
|
||||
@keyframes pj-dash-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
|
||||
@media (max-width: 900px) { .pj-dash-stats { grid-template-columns: repeat(2, 1fr); } }
|
||||
|
||||
/* ════════════════════════════════════════════════════════════
|
||||
좌측 사이드바 개인 메뉴 — 수신함 / 내 업무(접이식)
|
||||
예전에 화면 오른쪽에 항상 떠 있던 "내 업무" 패널을 이 메뉴가 대신한다.
|
||||
════════════════════════════════════════════════════════════ */
|
||||
.pj-side-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
|
||||
.pj-side-navlink {
|
||||
display: flex; align-items: center; gap: 9px; width: 100%;
|
||||
padding: 7px 8px; border: none; background: transparent; border-radius: 8px;
|
||||
color: var(--pj-ink); font-size: 13.5px; font-weight: 700; text-decoration: none;
|
||||
cursor: pointer; text-align: left;
|
||||
}
|
||||
.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-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;
|
||||
}
|
||||
.pj-side-navbadge-open { background: #dcf1fc; color: #0284c7; }
|
||||
.pj-side-navbadge[hidden] { display: none; }
|
||||
.pj-side-navcaret { font-size: 18px; color: #9aa1a9; flex: 0 0 auto; transition: transform .15s; }
|
||||
.pj-mytasks-toggle[aria-expanded="true"] .pj-side-navcaret { transform: rotate(180deg); }
|
||||
.pj-mytasks-panel { margin: 0 0 18px 6px; padding-left: 4px; border-left: 2px solid #eef0f2; }
|
||||
.pj-mytasks-panel[hidden] { display: none; }
|
||||
|
||||
/* ── 보드 가로 스크롤 막대 (세로 막대 .pj-vbar-* 와 같은 이유로 직접 그린다) ── */
|
||||
.pj-hbar { position: relative; height: 8px; margin: 6px 14px 0 0; border-radius: 999px; background: #e6e8ec; flex: none; }
|
||||
.pj-hbar[hidden] { display: none; }
|
||||
.pj-hbar-thumb { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: #b3b7bf; cursor: grab; }
|
||||
.pj-hbar-thumb:hover, .pj-hbar-thumb.is-dragging { background: #8f949e; }
|
||||
.pj-hbar-thumb.is-dragging { cursor: grabbing; }
|
||||
|
||||
/* ── 보드 카드에서 바로 고치는 담당자/마감일 ──
|
||||
값이 없을 때도 자리는 남겨 두되(카드에 마우스를 올려야 보인다) 눌러서
|
||||
바로 지정할 수 있게 한다. */
|
||||
.pj-card-edit-hit { cursor: pointer; border-radius: 6px; padding: 1px 4px; margin: -1px -4px; }
|
||||
.pj-card-edit-hit:hover { background: #eef1f6; }
|
||||
.pj-card-meta .is-empty { opacity: 0; transition: opacity .12s; color: #9aa1a9; }
|
||||
.pj-card:hover .pj-card-meta .is-empty { opacity: .8; }
|
||||
.pj-card-due.is-overdue { color: #c22b10; }
|
||||
.pj-inline-date {
|
||||
position: absolute; z-index: 1200; background: #fff; border: 1px solid #d8dce2;
|
||||
border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 8px;
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
}
|
||||
.pj-inline-date input[type="date"] { border: 1px solid #d8dce2; border-radius: 7px; padding: 5px 7px; font-size: 13px; }
|
||||
|
||||
/* ── 멘션(@태그) ── */
|
||||
.pj-mention {
|
||||
display: inline-block; padding: 0 5px; border-radius: 5px;
|
||||
background: var(--pj-accent-tint, #e8eefb); color: var(--pj-accent-dark, #2f5bb7);
|
||||
font-weight: 600; white-space: nowrap;
|
||||
}
|
||||
.pj-mention-menu {
|
||||
position: absolute; z-index: 1300; min-width: 200px; max-height: 260px; overflow-y: auto;
|
||||
background: #fff; border: 1px solid #d8dce2; border-radius: 10px;
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 4px;
|
||||
}
|
||||
.pj-mention-menu[hidden] { display: none; }
|
||||
.pj-mention-opt {
|
||||
display: flex; align-items: center; gap: 8px; width: 100%;
|
||||
padding: 7px 8px; border: none; background: transparent; border-radius: 7px;
|
||||
font-size: 13px; color: var(--pj-ink); cursor: pointer; text-align: left;
|
||||
}
|
||||
.pj-mention-opt:hover, .pj-mention-opt.is-active { background: var(--pj-accent-tint, #e8eefb); }
|
||||
.pj-mention-opt .pj-avatar, .pj-mention-opt .pj-gicon { flex: 0 0 auto; }
|
||||
.pj-mention-empty { padding: 8px; font-size: 12.5px; color: #9aa1a9; }
|
||||
|
||||
/* 설명란 링크 — 클릭하면 새 탭으로 열린다(JS 가 처리). */
|
||||
.pj-desc-editor a { color: var(--pj-accent-dark, #2f5bb7); text-decoration: underline; cursor: pointer; }
|
||||
|
||||
/* ── 수신함 섹션 (알림 / 나를 태그한 업무) ── */
|
||||
.pj-inbox-section { margin-bottom: 26px; }
|
||||
.pj-inbox-h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #6b7280; margin: 0 0 10px; }
|
||||
.pj-inbox-count { padding: 1px 7px; border-radius: 999px; background: #fbe3df; color: #c22b10; font-size: 11px; font-weight: 700; }
|
||||
.pj-inbox-count[hidden] { display: none; }
|
||||
.pj-inbox-title.is-done { text-decoration: line-through; color: #9aa1a9; }
|
||||
.pj-inbox-proj { font-weight: 600; }
|
||||
|
||||
Reference in New Issue
Block a user