feat(project): 작업 창 댓글 입력칸을 창 하단에 고정(아사나식)

입력칸을 스크롤 영역(.pj-modal-body) 밖 #pj-comment-dock 으로 옮겨
항상 보이고, 끝까지 스크롤해도 마지막 내용이 입력칸 위에서 멈춘다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-28 21:08:59 +09:00
parent 2b6b598ea0
commit 5be647b14f
8 changed files with 39 additions and 14 deletions
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928g" />
<link rel="stylesheet" href="/static/project.css?v=20260928h" />
<link rel="stylesheet" href="/static/project-help.css?v=20260926v" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -294,7 +294,7 @@
</ol>
<p>작업은 하나라서 어느 보드에서 고쳐도 모두 같이 바뀝니다.</p>
<h3>댓글</h3>
<p>맨 아래 댓글 칸에 쓰고 <kbd>Enter</kbd>. 내가 쓴 댓글은 <span class="pjh-ui">✎</span>로 고치고 <span class="pjh-ui">×</span>로 지웁니다. 댓글 속 웹 주소는 링크가 됩니다.</p>
<p>작업 창 맨 아래에 항상 고정된 댓글 칸에 쓰고 <kbd>Enter</kbd>(스크롤해도 그 자리에 있습니다). 내가 쓴 댓글은 <span class="pjh-ui">✎</span>로 고치고 <span class="pjh-ui">×</span>로 지웁니다. 댓글 속 웹 주소는 링크가 됩니다.</p>
</section>
<!-- 9. 작업 창의 하위 작업 -->
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928g" />
<link rel="stylesheet" href="/static/project.css?v=20260928h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -104,5 +104,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260928g" defer></script>
<script src="/static/project.js?v=20260928h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928g" />
<link rel="stylesheet" href="/static/project.css?v=20260928h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -100,5 +100,5 @@
"today": {{ today | tojson }}
}
</script>
<script src="/static/project.js?v=20260928g" defer></script>
<script src="/static/project.js?v=20260928h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928g" />
<link rel="stylesheet" href="/static/project.css?v=20260928h" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<!-- 타임라인 vis-timeline — self-host -->
@@ -401,16 +401,22 @@
<!-- 댓글(활동) — 팝업 너비 전체를 쓰는 맨 아래 줄. 길어지면 자체
스크롤 없이 팝업 전체(.pj-modal-body)와 함께 늘어난다.
입력칸은 여기 없고 아래 #pj-comment-dock(창 하단 고정)에 있다.
기존 업무 편집 시에만. -->
<div class="pj-task-extra pj-comment-full" id="pj-comment-block" hidden>
<div class="pj-extra-head">
<span class="pj-cmt-emoji">💬</span> 댓글
</div>
<ul class="pj-comment-list" id="pj-comment-list"></ul>
<div class="pj-comment-form">
<input type="text" id="pj-comment-input" placeholder="댓글 입력…" />
<button type="button" class="pj-btn pj-btn-primary" id="pj-comment-send">등록</button>
</div>
</div>
</div>
<!-- 댓글 입력칸 — 아사나처럼 작업 창 맨 아래에 항상 고정. 스크롤 영역(.pj-modal-body)
바깥이라 끝까지 내려도 마지막 내용은 이 칸 바로 위에서 멈추고 가리지 않는다. -->
<div class="pj-comment-dock" id="pj-comment-dock" hidden>
<div class="pj-comment-form">
<input type="text" id="pj-comment-input" placeholder="댓글을 추가하거나 @로 멤버를 태그하세요" />
<button type="button" class="pj-btn pj-btn-primary" id="pj-comment-send">등록</button>
</div>
</div>
@@ -485,5 +491,5 @@
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20260928g" defer></script>
<script src="/static/project.js?v=20260928h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928g" />
<link rel="stylesheet" href="/static/project.css?v=20260928h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -70,5 +70,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260928g" defer></script>
<script src="/static/project.js?v=20260928h" defer></script>
{% endblock %}
+16
View File
@@ -606,6 +606,22 @@
/* 댓글 — 팝업 너비 전체, 목록 자체는 더 이상 안에서 스크롤하지 않고
팝업 전체(.pj-modal-body)와 같이 늘어난다. */
.pj-comment-full .pj-comment-list { max-height: none; overflow-y: visible; }
/* 댓글 입력칸 — 작업 창 맨 아래 고정(아사나). 카드는 flex column 이고 스크롤은
.pj-modal-body 만 하므로, 이 칸은 스크롤 영역 밖 아래에 붙는다 → 끝까지 내려도
마지막 내용이 이 칸 위에서 멈춘다. 카드 padding(22px)을 음수 마진으로 덮어
창 좌우·아래 끝까지 흰 바탕 + 위 구분선. */
.pj-comment-dock {
flex: none; margin: 0 -22px -22px; padding: 12px 22px 16px;
background: #fff; border-top: 1px solid #e6e8eb; box-shadow: 0 -4px 12px rgba(0,0,0,.04);
position: relative; z-index: 2;
}
.pj-comment-dock[hidden] { display: none; }
.pj-comment-dock .pj-comment-form {
border: 1px solid #d8dce2; border-radius: 12px; padding: 6px 6px 6px 4px; background: #fff;
transition: border-color .12s, box-shadow .12s;
}
.pj-comment-dock .pj-comment-form:focus-within { border-color: #a9aeb6; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.pj-comment-dock .pj-comment-form input { border: none !important; box-shadow: none !important; padding: 8px 8px; font-size: 14px; outline: none; background: transparent; }
@media (max-width: 720px) {
.pj-task-modal-card { width: 100vw; max-width: 100vw; min-width: 0; }
.pj-side-2col { display: block; }
+1
View File
@@ -5313,6 +5313,7 @@
showFollowers(null, null); // 상세를 받으면(loadTaskExtras) 다시 그린다
el("pj-attach-block").hidden = !task;
el("pj-comment-block").hidden = !task;
el("pj-comment-dock").hidden = !task;
// 하위 업무도 업무와 같은 팝업·같은 편집(아사나식). 다른 점은 세 가지 —
// 제목 위에 상위 업무 경로, 세션 칸 없음(하위 업무는 세션이 없다),
// 다른 프로젝트 연결(멀티호밍) 없음.
+2
View File
@@ -299,6 +299,8 @@ description 을 항상 HTML로 취급하기 때문). 두 번 실행하면 이중
- **댓글** `task_comments` — 작업 모달 하단. 등록/삭제(본인·관리자). 새 댓글 시 관련자 인앱 알림.
- **작업 편집 팝업** — 버튼 줄(공유·완료·삭제·저장 상태·패널 접기)은 **팝업 맨 위에 고정**
(`.pj-modal-actions-top`) — 카드가 flex column 이고 `.pj-modal-body` 만 스크롤하므로 sticky 없이 고정된다(sticky 는 카드 padding 안쪽에 붙어 바가 밀려 내려오고 제목을 덮었다). 저장 버튼은 없다 — 실시간 저장(§6-6).
댓글 입력칸은 아사나처럼 **창 맨 아래 고정**(`#pj-comment-dock`) — `.pj-modal-body` 바깥 형제라서
끝까지 스크롤해도 마지막 내용이 입력칸 위에서 멈춘다(sticky 아님). 새 작업(id 없음)이면 숨긴다.
그 아래 메타(담당자·섹션·우선순위·마감일 한 줄 — 마감일은 캘린더 아이콘 버튼, 좁으면 2×2 | 협업자), 다시 그 아래 **설명란**과
**하위 작업**가 각각 팝업 너비 전체를 쓰는 별도 행(`.pj-desc-block` / `.pj-subtask-full`,
그리드 `1 / -1`). 하위 작업은 제목 왼쪽 체크박스로 완료를 토글하고, 완료된 줄은