0.71.15: cap focused-header body to ~3 lines with internal scroll

This commit is contained in:
Human 2026-05-26 00:41:21 -07:00
parent f53adbf243
commit 5fccb06faf
4 changed files with 20 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{
"id": "stashpad",
"name": "Stashpad",
"version": "0.71.14",
"version": "0.71.15",
"minAppVersion": "1.7.0",
"description": "Chat-style nested-notes view: rapid capture, outliner navigation, in-place editing.",
"author": "Human",

View file

@ -1,6 +1,6 @@
{
"name": "stashpad-obsidian",
"version": "0.71.14",
"version": "0.71.15",
"private": true,
"scripts": {
"dev": "node esbuild.config.mjs",

9
release-notes/0.71.15.md Normal file
View file

@ -0,0 +1,9 @@
# 0.71.15 — Focused-header body capped at ~3 lines
After the JD index Preview overwrites a home note with a full hierarchy, the
focused-header strip was eating up to half the viewport.
- `.stashpad-focused-body` is now capped at roughly three lines tall
(`max-height: calc(var(--font-text-size) * 1.5 * 3)`) with `overflow-y:
auto`. The header stays compact and scrolls internally instead of pushing
the note list down.

View file

@ -769,7 +769,15 @@
color: var(--text-muted);
line-height: 1.2;
}
.stashpad-focused-body { padding: 0; }
.stashpad-focused-body {
padding: 0;
/* 0.71.15: cap the focused-header body to a few lines + scroll. A
long home note (especially after the JD index Preview overwrites
it with a hierarchy) was eating ~half the viewport; users prefer
a stable header strip and scroll-on-demand. */
max-height: calc(var(--font-text-size, 16px) * 1.5 * 3);
overflow-y: auto;
}
.stashpad-focused-body > :first-child { margin-top: 0; }
.stashpad-focused-body > :last-child { margin-bottom: 0; }
.stashpad-focused-actions {