From 654e89d98cd60582b84b0b3e7b479d98c4e60aab Mon Sep 17 00:00:00 2001 From: cflmy Date: Sun, 18 Oct 2026 02:59:36 +0800 Subject: [PATCH] style(view): make cell resize affordance visible Style the native vertical resize grip and add a hover hint on code and output panes. --- src/view/html.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/view/html.rs b/src/view/html.rs index 31b1148..b1d8bdb 100644 --- a/src/view/html.rs +++ b/src/view/html.rs @@ -3250,6 +3250,10 @@ body.notebook-page .code-body { font: 0.76rem/1.55 var(--mono); tab-size: 4; } +body.notebook-page .code-body::-webkit-resizer, +body.notebook-page .code-out::-webkit-resizer { + background: linear-gradient(135deg, transparent 0 48%, var(--nb-muted) 48% 100%); +} body.notebook-page .code-body code { background: transparent; color: inherit; @@ -3559,6 +3563,9 @@ body.notebook-page .stdin-form button { applyTheme(document.body.dataset.theme === "light" ? "dark" : "light"); }); } + document.querySelectorAll(".code-body, .code-out").forEach(function (el) { + el.title = "拖动右下角调整高度"; + }); document.querySelectorAll(".code-card").forEach(function (cardEl) { var head = cardEl.querySelector(".code-head"); var foot = cardEl.querySelector(".code-foot");