feat(project): 성공하기 버튼을 사이드바 프로젝트 목록 위로 + dbx.html 탭 순서·강조
- [성공하기] 수신함 머리 → 왼쪽 사이드바 프로젝트 목록 위(_side.html, 모든 Project 화면), 아이콘 120% - 창 여는 코드는 project.js 문서 단위 클릭 위임(팝업 막힘 안내) - dbx.html: "DBX 존재이유 / 일하는 법", 형광 노랑 <mark>, 탭 순서 변경, 일 잘한다·의문 줄 굵게, 마지막 질문 굵게+형광 - project.css 20261015d, project.js 20261015b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3175,13 +3175,14 @@ html[data-pj-font="nanum-square-round"] { --pj-font: "NanumSquareRound", var(--p
|
||||
.pj-notifier-back:hover { color: var(--pj-accent-dark); text-decoration: underline; }
|
||||
.pj-inbox-notifier { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
|
||||
.pj-inbox-notifier .material-symbols-outlined { font-size: 18px; }
|
||||
/* 수신함 머리 — [성공하기] 맨 왼쪽 | 제목 줄 가운데(굵게) | 버튼들 맨 오른쪽.
|
||||
1fr | 제목 | 1fr 격자라 양쪽 버튼 폭과 상관없이 제목이 정가운데. 모두 확인/읽음은 아이콘만(말풍선 = title) */
|
||||
/* 수신함 머리 — 제목 줄 가운데(굵게) | 버튼들 맨 오른쪽.
|
||||
1fr | 제목 | 1fr 격자라 오른쪽 버튼 폭과 상관없이 제목이 정가운데. 모두 확인/읽음은 아이콘만(말풍선 = title) */
|
||||
.pj-inbox-view .pj-main > .pj-section-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
|
||||
.pj-inbox-dbx { grid-column: 1; justify-self: start; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
|
||||
/* 성공하기 — 왼쪽 사이드바 프로젝트 목록 바로 위(모든 Project 화면 공용), 아이콘은 버튼 글자보다 크게(18px 의 120%) */
|
||||
.pj-side-dbx { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin: 10px 0 6px 8px; white-space: nowrap; }
|
||||
.pj-side-dbx .material-symbols-outlined { font-size: 21.6px; color: #e8a33d; }
|
||||
.pj-inbox-titlebar { grid-column: 2; display: flex; align-items: center; }
|
||||
.pj-inbox-actions { grid-column: 3; justify-self: end; display: flex; gap: 8px; }
|
||||
.pj-inbox-dbx .material-symbols-outlined { font-size: 18px; color: #e8a33d; }
|
||||
.pj-inbox-iconbtn { display: inline-flex; align-items: center; justify-content: center; padding-left: 10px; padding-right: 10px; }
|
||||
.pj-inbox-iconbtn .material-symbols-outlined { font-size: 20px; }
|
||||
|
||||
|
||||
@@ -2305,6 +2305,18 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
// ── 성공하기(왼쪽 사이드바 프로젝트 목록 위, _side.html) — dbx.html(GET /project/dbx)을 닫기 버튼만 있는 별도 창으로.
|
||||
// 같은 창 이름이라 여러 번 눌러도 창 하나. 사이드바는 화면마다 include 라 문서 단위로 한 번만 건다.
|
||||
document.addEventListener("click", function (e) {
|
||||
if (!e.target.closest || !e.target.closest("#pj-dbx-open")) return;
|
||||
const sw = (window.screen && screen.availWidth) || 1600, sh = (window.screen && screen.availHeight) || 900;
|
||||
const w = Math.min(960, sw - 40), h = Math.min(860, sh - 60);
|
||||
const win = window.open("/project/dbx", "pj-dbx",
|
||||
"popup=yes,width=" + w + ",height=" + h + ",left=" + Math.max(0, Math.round((sw - w) / 2)) + ",top=" + Math.max(0, Math.round((sh - h) / 2)));
|
||||
if (!win) { showToast("팝업이 막혀 있습니다. 브라우저 주소창 오른쪽에서 이 사이트의 팝업을 허용해 주세요.", "error"); return; }
|
||||
try { win.focus(); } catch (_) {}
|
||||
});
|
||||
|
||||
// ── 이미지 → 클립보드(PNG 그림만, 2026-10-15) — 브라우저 기본 복사는 `<img src=첨부 주소>` HTML 을 같이(또는 그것만) 넣는데,
|
||||
// 첨부 주소는 로그인해야 받을 수 있어서 카카오톡·한글·워드처럼 HTML 을 먼저 쓰는 프로그램에선 빈칸이 된다.
|
||||
// 그래서 화면의 이미지를 캔버스로 PNG 로 만들어 그림만 넣는다(같은 서버 이미지라 캔버스가 오염되지 않음).
|
||||
|
||||
Reference in New Issue
Block a user