fix(project): 보드 카드 고정 머리를 섹션 제목 바로 아래에 붙임(위 8px 틈으로 스크롤 줄이 비치던 문제)

sticky 는 스크롤 영역의 padding 안쪽에 붙으므로 top 을 .pj-col-body padding-top 만큼 음수(-8px)로.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-29 14:50:39 +09:00
parent 52c1b004e6
commit b95206dcf4
6 changed files with 13 additions and 11 deletions
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260929g" />
<link rel="stylesheet" href="/static/project.css?v=20260929h" />
<link rel="stylesheet" href="/static/project-help.css?v=20260926v" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260929g" />
<link rel="stylesheet" href="/static/project.css?v=20260929h" />
<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=20260929g" defer></script>
<script src="/static/project.js?v=20260929h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260929g" />
<link rel="stylesheet" href="/static/project.css?v=20260929h" />
<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=20260929g" defer></script>
<script src="/static/project.js?v=20260929h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260929g" />
<link rel="stylesheet" href="/static/project.css?v=20260929h" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<!-- 타임라인 vis-timeline — self-host -->
@@ -491,5 +491,5 @@
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20260929g" defer></script>
<script src="/static/project.js?v=20260929h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260929g" />
<link rel="stylesheet" href="/static/project.css?v=20260929h" />
<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=20260929g" defer></script>
<script src="/static/project.js?v=20260929h" defer></script>
{% endblock %}
+4 -2
View File
@@ -1057,9 +1057,11 @@ html.pj-ui-scale #pj-timeline { zoom: calc(1 / var(--pj-z)); --tz: var(--pj-z);
.pj-card-subs-wrap.is-open { grid-template-rows: 1fr; margin-top: 10px; opacity: 1; }
.pj-card-subs { min-height: 0; overflow: hidden; margin: 0 -4px; border-top: 1px solid #eef0f2; }
/* 카드 윗부분(제목·담당자/마감일/하위 작업 줄) — 하위 작업이 길어 컬럼을 스크롤해도
카드가 끝날 때까지 컬럼 맨 위에 고정. 카드 안쪽 위·좌우 여백까지 덮도록 넓힌다. */
카드가 끝날 때까지 컬럼 맨 위에 고정. 카드 안쪽 위·좌우 여백까지 덮도록 넓힌다.
top 은 .pj-col-body 의 padding-top(8px)만큼 음수 — sticky 는 스크롤 영역의 여백 안쪽에
붙으므로 0 이면 섹션 제목과 카드 머리 사이 8px 틈으로 스크롤되는 줄이 비쳐 보인다. */
.pj-card-head {
position: sticky; top: 0; z-index: 2;
position: sticky; top: -8px; z-index: 2;
margin: -12px -14px 0; padding: 12px 14px 0;
background: inherit; border-radius: calc(var(--pj-card-radius) - 1px) calc(var(--pj-card-radius) - 1px) 0 0;
}