style: 분할 보기 칸 헤더의 화면 제목(sh-name) 제거 (화면 자체 제목과 중복)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -211,10 +211,11 @@ if ($effectiveLgIdx) {
|
||||
(function (idx) {
|
||||
var h = document.createElement('div');
|
||||
h.className = 'ws-slot-head';
|
||||
var nm = document.createElement('span'); nm.className = 'sh-name';
|
||||
// 칸 제목(sh-name)은 표시하지 않음 — 칸 안 화면에 이미 제목이 있어 중복.
|
||||
var sp = document.createElement('span'); sp.className = 'sh-spacer'; sp.style.flex = '1';
|
||||
var rl = document.createElement('span'); rl.className = 'sh-btn sh-reload'; rl.textContent = '↻'; rl.title = '이 칸 새로고침';
|
||||
var cl = document.createElement('span'); cl.className = 'sh-btn sh-clear'; cl.textContent = '×'; cl.title = '이 칸 비우기';
|
||||
h.appendChild(nm); h.appendChild(rl); h.appendChild(cl);
|
||||
h.appendChild(sp); h.appendChild(rl); h.appendChild(cl);
|
||||
h.addEventListener('click', function (e) {
|
||||
if (e.target === rl) { var sid = slots[idx]; if (sid) reloadTab(sid); return; }
|
||||
if (e.target === cl) { slots[idx] = null; render(); return; }
|
||||
@@ -287,8 +288,6 @@ if ($effectiveLgIdx) {
|
||||
head.style.display = 'flex';
|
||||
head.style.left = r.l; head.style.top = r.t; head.style.width = r.w;
|
||||
head.classList.toggle('focused', i === focused);
|
||||
var sid = slots[i];
|
||||
head.querySelector('.sh-name').textContent = (sid && tabs[sid]) ? tabs[sid].title : '비어 있음';
|
||||
} else {
|
||||
head.style.display = 'none';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user