mirror of
https://github.com/grub-basket/SP.git
synced 2026-07-22 07:46:27 +00:00
0.71.15: cap focused-header body to ~3 lines with internal scroll
This commit is contained in:
parent
f53adbf243
commit
5fccb06faf
4 changed files with 20 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
9
release-notes/0.71.15.md
Normal 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.
|
||||
10
styles.css
10
styles.css
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue