fix(project): 달력 드래그 불가 수정 — bar 를 a→div 로 교체
업무 bar 가 <a> 앵커라 브라우저가 'link drag'(href 없음)로 처리해 드래그가 시작되지 않았다. <div> + 서버 렌더 draggable 속성으로 교체해 요소 드래그가 정상 시작되도록 함. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -115,15 +115,16 @@
|
|||||||
|
|
||||||
<div class="pj-week-bars">
|
<div class="pj-week-bars">
|
||||||
{% for bar in week.bars %}
|
{% for bar in week.bars %}
|
||||||
<a class="pj-bar {% if bar.completed %}pj-bar-done{% endif %}
|
<div class="pj-bar {% if bar.completed %}pj-bar-done{% endif %}
|
||||||
{% if bar.continues_left %}pj-bar-l{% endif %}
|
{% if bar.continues_left %}pj-bar-l{% endif %}
|
||||||
{% if bar.continues_right %}pj-bar-r{% endif %}"
|
{% if bar.continues_right %}pj-bar-r{% endif %}"
|
||||||
data-task-id="{{ bar.id }}"
|
data-task-id="{{ bar.id }}"
|
||||||
|
{% if can_manage %}draggable="true"{% endif %}
|
||||||
style="grid-column: {{ bar.start_col + 1 }} / span {{ bar.span }}; grid-row: {{ bar.lane + 1 }};
|
style="grid-column: {{ bar.start_col + 1 }} / span {{ bar.span }}; grid-row: {{ bar.lane + 1 }};
|
||||||
background: {% if bar.completed %}#9aa5b1{% else %}{{ bar.color }}{% endif %};"
|
background: {% if bar.completed %}#9aa5b1{% else %}{{ bar.color }}{% endif %};"
|
||||||
title="{{ bar.label }}">
|
title="{{ bar.label }}">
|
||||||
<span class="pj-bar-label">{{ bar.label }}</span>
|
<span class="pj-bar-label">{{ bar.label }}</span>
|
||||||
</a>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user