style(project): compact toolbar and reset icon
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261003c" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261003d" />
|
||||
<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=20261003c" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261003d" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -57,7 +57,9 @@
|
||||
<button type="button" class="pj-goal-format-btn" data-goal-format="{{ key }}" aria-label="{{ label }}" title="{{ label }}" aria-pressed="false" disabled><span class="pj-goal-font-letter" aria-hidden="true">가</span></button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<button type="button" class="pj-btn" data-goal-format="reset" disabled>서식 초기화</button>
|
||||
<div class="pj-goal-format-group" role="group" aria-label="서식 초기화">
|
||||
<button type="button" class="pj-goal-format-btn" data-goal-format="reset" aria-label="서식 초기화" title="서식 초기화" disabled><svg class="pj-goal-reset-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m16 3 5 5a2 2 0 0 1 0 3L11 21H7l-4-4a2 2 0 0 1 0-3L13 3a2 2 0 0 1 3 0Z"/><path d="m8 9 7 7M11 21h10"/></svg></button>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="pj-view pj-goal-pane" id="pj-goal-pane">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261003c" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261003d" />
|
||||
<link rel="stylesheet" href="/static/project-help.css?v=20261002d" />
|
||||
<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=20261003c" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261003d" />
|
||||
<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=20261003c" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261003d" />
|
||||
<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=20261003c" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261003d" />
|
||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
<!-- 타임라인 vis-timeline — self-host -->
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261003c" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20261003d" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -2722,20 +2722,19 @@ 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 { position: fixed; z-index: 1200; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 8px; 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 { position: fixed; z-index: 1200; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 4px 6px; 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-group { display: inline-flex; align-items: center; gap: 2px; }
|
||||
.pj-goal-format-group + .pj-goal-format-group { border-left: 1px solid var(--pj-border); padding-left: 6px; }
|
||||
.pj-goal-format .pj-goal-format-btn, .pj-goal-format [data-goal-format="reset"] { display: inline-flex; align-items: center; justify-content: center; height: 32px; box-sizing: border-box; border: 1px solid transparent; border-radius: 4px; padding: 0 8px; background: #fff; color: inherit; font: inherit; line-height: 1; cursor: pointer; }
|
||||
.pj-goal-format .pj-goal-format-btn { min-width: 32px; }
|
||||
.pj-goal-format .pj-goal-format-btn { display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 24px; box-sizing: border-box; border: 1px solid transparent; border-radius: 4px; padding: 0 5px; background: #fff; color: inherit; font: inherit; line-height: 1; cursor: pointer; }
|
||||
.pj-goal-format .pj-goal-format-btn:hover, .pj-goal-format [data-goal-format="reset"]:hover { background: #f3f4f6; }
|
||||
.pj-goal-format .pj-goal-format-btn[aria-pressed="true"] { border-color: #b5b9c0; background: #e8eaed; }
|
||||
.pj-goal-format .pj-goal-format-btn[aria-pressed="mixed"] { background: #f3f4f6; box-shadow: inset 0 -2px #9ca3af; }
|
||||
.pj-goal-format .pj-goal-format-btn:focus-visible { outline: 2px solid var(--pj-accent); outline-offset: 1px; }
|
||||
.pj-goal-format [data-goal-format="reset"] { border-color: #d8dce2; margin-left: 4px; }
|
||||
.pj-goal-reset-icon { width: 14.4px; height: 14.4px; }
|
||||
.pj-goal-color-picker { position: relative; display: flex; align-items: center; }
|
||||
.pj-goal-color-toggle { gap: 5px; }
|
||||
/* 아이콘만 이전 크기의 80%로 축소, 버튼 높이와 초기화 버튼 정렬은 유지한다. */
|
||||
/* 아이콘은 처음 크기의 80%, 버튼은 24px 높이로 맞춘다. */
|
||||
.pj-goal-color-letter { display: flex; flex-direction: column; align-items: stretch; font-size: 13.6px; line-height: 14.4px; }
|
||||
.pj-goal-color-preview { display: block; width: 14.4px; height: 2.4px; background: #000; box-shadow: inset 0 0 0 1px #0002; }
|
||||
.pj-goal-format-chevron { width: 6.4px; height: 6.4px; }
|
||||
|
||||
@@ -661,9 +661,10 @@ description 을 항상 HTML로 취급하기 때문). 두 번 실행하면 이중
|
||||
(나눈 뒤 이동), 묶음 첫 줄 도구 막대엔 ↑↓ 없음. 새 연도 만들기는 묶음도 복사한다.
|
||||
- **선택한 글자 서식**(관리자, 2026-10-02) — 목표 업무 영역 글 칸은 `.pj-goal-text[contenteditable]`.
|
||||
같은 칸의 글자를 드래그해 선택하면 셀 상단 중앙을 기준으로 셀 위에 엑셀 형태 도구가 나타난다(여러 줄 글의 어느 줄을 선택해도 동일 위치).
|
||||
아이콘은 처음 엑셀 형태 도구 크기의 80%이며 버튼 높이는 유지한다. 밑에 현재 색상 선을 둔 `가`+드롭다운은 기존 12색 견본,
|
||||
아이콘은 처음 엑셀 형태 도구 크기의 80%이다. 밑에 현재 색상 선을 둔 `가`+드롭다운은 기존 12색 견본,
|
||||
`가`+위/아래 화살표는 크기 2px 증감(10~32px, 혼합 크기는 조각마다 증감), 굵게·기울임·밑줄은 적용 상태가 보이는 토글 버튼.
|
||||
초기화 버튼을 포함한 모든 버튼은 32px 높이. 서식 초기화는 선택 범위의 모든 서식만 제거하며 글은 유지한다.
|
||||
서식 초기화는 구분선 뒤의 지우개 아이콘(14.4px)으로 표시하며 접근성 이름·도움말은 `서식 초기화`이다.
|
||||
모든 버튼은 24px 높이, 서식 바는 위아래 여백 4px로 한 줄에서 34px 높이. 서식 초기화는 선택 범위의 모든 서식만 제거하며 글은 유지한다.
|
||||
기존 `createFieldSaver`의 자동 저장·실패 재시도·임시 복구를 재사용한다.
|
||||
`goal_cells.body` TEXT에 `pj-rich:v1:` + JSON 텍스트 조각 배열 `{text,bold?,italic?,underline?,color?,size?}`를 저장한다(추가 마이그레이션 없음).
|
||||
평문은 기존 형식 그대로, `store.validate_goal_text`가 허용 서식과 보이는 글자 길이를 검사하고 `goal_text_html`이 글을 escape한 안전한 span만 만든다.
|
||||
|
||||
Reference in New Issue
Block a user