diff --git a/assets/css/app.css b/assets/css/app.css index e5d3e0e..b5aeec0 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -195,11 +195,24 @@ a:hover { text-decoration: underline; } .cal-set-links a .mi { flex: 0 0 16px; color: var(--muted); } .cal-set-links a:hover .mi { color: currentColor; } -/* 点了日历空白处就建日程 —— 鼠标要能看出那里可点(用户第 5 条)。 - ⚠️ 只给「能写」的人光标:只读账号点上去弹不出表单,给个十字光标是骗人。 */ -.tg-col.rt-writable, .cal-cell.rt-writable { cursor: crosshair; } +/* 点了日历空白处就建日程(能力保留,见 templates/calendar/index.php 的 data-new-at)。 + 🔴 v48(用户 2026-10-14 第 3 条):「现在鼠标放在视图上时,变成了一个十字。 + 我感觉这个没必要,不用有这样的变化。」 + ⇒ **去掉十字光标**。原来给 `.rt-writable`(能写的人)挂 `cursor: crosshair` + 是想"让人看出这里能点",但用户明确不要这个视觉变化。 + ⚠️ 只删光标、**不删能力**:点击建日程的 JS 与 `data-new-at` 一律不动 + (那是第 2 条要修好、而不是要撤掉的东西)。 + ⚠️ 连 `.rt-writable` 类本身也留着 —— 它还被别处引用,且是"这个人能不能写" + 这一状态在 DOM 上的标记位,删类名会牵连样式与断言。 */ .link-quiet { color: var(--muted); font-size: 14px; } .link-quiet:hover { color: var(--brand); } +/* 长得像链接的**按钮**(v48)。`.link-quiet` 本来是给 / 写的, + 直接套在 + + -
- 共享设置 -
- - - (int)$p['id'] !== (int)\App\Auth::personId())); - $ppSelected = []; - $ppMode = 'single'; - $ppOpenBtn = '选择要共享给谁'; - $ppTitle = '共享给谁'; - $ppEmptyText = '未选择'; - require __DIR__ . '/../_person_picker.php'; - ?> - - -
- -
- - - - - -
- -
+ + @@ -258,3 +258,95 @@ $canWrite = \App\Auth::canWrite(); + +` 兜底。12 本 ⇒ 整页 5.9 MB / 近万个 input + ⇒ 浏览器与密码管理器逐个扫描,慢得能感觉到。 + 收成一份之后:**一整套选人组件**(1 份 JSON + 1 份 noscript), + 与日历本数无关 —— 再多本日历页也不会再变大。 + + ⚠️ 选人组件是**单选**(`$ppMode='single'`):行上按钮被点开时,用 + `window.ppSetSelected('person_id', 0, panel)` 把它重置成"未选", + 再让用户挑 —— 否则上一次挑的人会留在表单里(看着像"已经选好了")。 */ ?> + + + + diff --git a/templates/calendar/index.php b/templates/calendar/index.php index 7609f76..0a2187b 100644 --- a/templates/calendar/index.php +++ b/templates/calendar/index.php @@ -30,7 +30,10 @@ $writable = array_values(array_filter($cals, static fn($c) => \App\Calendar::can $visCals = array_map('intval', (array)($visCals ?? [])); $hiddenCals = array_map('intval', (array)($hiddenCals ?? [])); $newAt = (string)($newAt ?? ''); -// 能不能"点一下建日程":只读账号点了没反应,所以连十字光标都不给(见 CSS 的 rt-writable) +// 能不能"点一下建日程":只读账号点了没反应,所以连 rt-writable 标记都不给。 +// 🔴 v48(用户 2026-10-14 第 3 条):**十字光标已去掉**(CSS 里不再有 cursor:crosshair), +// 但 `rt-writable` 这个**类名保留** —— 它是"这个人能不能写"在 DOM 上的标记位, +// 点击建日程的判断逻辑与此无关(见底部 JS 的 $canWrite && $writable)。 $canNew = $canWrite && (bool)$writable; // 三种看法各自的「上一段 / 下一段」:月按整月走,周按 7 天走,天按 1 天走