Skip to content

fix: reserve space below quick capture panel for status bar - #596

Open
dbdefault wants to merge 1 commit into
taskgenius:masterfrom
dbdefault:fix/quick-capture-panel-status-bar
Open

dbdefault wants to merge 1 commit into
taskgenius:masterfrom
dbdefault:fix/quick-capture-panel-status-bar

Conversation

@dbdefault

@dbdefault dbdefault commented Nov 10, 2026 •

Copy link
Copy Markdown

Description

Adds margin-bottom: var(--size-4-5) to .quick-capture-panel in src/styles/quick-capture.scss, so the Submit and Cancel buttons of the editor quick-capture panel are not hidden behind Obsidian's floating status bar. This is the workaround proposed in the issue.

--size-4-5 is an Obsidian size variable that the plugin already uses elsewhere (for example src/styles/onboarding.scss:1514, margin-bottom: var(--size-4-5)).

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Code refactoring

Checklist

  • I have read and agree to the CLA (signed by commenting the required sentence on this PR)
  • My code follows the project's style guidelines
  • I have tested my changes: see below
  • I have updated the documentation: not applicable, no behaviour documented elsewhere

Testing

Built from this branch with the packages/calendar submodule checked out at its pinned commit 3cb5706 and built by pnpm install:

  • pnpm run build exits 0. The compiled dist/styles.css contains .quick-capture-panel{...gap:var(--size-4-2);margin-bottom:var(--size-4-5)}.
  • pnpm run test --passWithNoTests: 135 test suites and 1718 tests passed.

Layout check, not in Obsidian: I did not open Obsidian. Instead I rendered CodeMirror's panel structure (div.cm-panels.cm-panels-bottom with position: sticky; bottom: 0 around the panel) in headless Edge, with a 24px bar floating over the bottom of the editor. Without the rule the Submit button overlapped the bar by 16px; with margin-bottom: var(--size-4-5) (32px) the overlap was 0px, the same result as the issue's .cm-panels-bottom .quick-capture-panel selector. This does not use Obsidian's real theme CSS, and the 24px bar height is my assumption, so it shows the rule works in that structure, not that 32px is the right value in every theme.

Note on the earlier version of this description: it said the build and tests could not be run because the packages/calendar submodule commit was not fetchable. That was wrong. The commit is public; my local submodule checkout was empty and I did not recover it. The automated review on this PR reported two failing tests in an earlier run (CanvasTaskUpdater and a timing test). Both pass on my machine, but the first compares a UTC date with a local date, and my machine is UTC+8 where both fall on the same day right now, so that pass does not show it is fixed.

Related Issues

Closes #588

This change was prepared with AI assistance.

Add margin-bottom to .quick-capture-panel so its Submit/Cancel buttons
are not hidden behind Obsidian's floating status bar.

Closes taskgenius#588
@bitskc

bitskc commented Nov 10, 2026

Copy link
Copy Markdown

Automated Code Review

Risk Level: Very Low — no detailed review required. Safe to merge.

What changed: One-line CSS addition in src/styles/quick-capture.scss (margin-bottom: var(--size-4-5) on .quick-capture-panel) to lift the editor quick-capture panel above Obsidian's floating status bar. Not built or tested by the author (submodule fetch failure); the change is visual only. Reviewed at 4cea987.

@bitskc

bitskc commented Nov 10, 2026

Copy link
Copy Markdown

Local CI Results

PR: #596 | SHA: 4cea987e1f64ff14bc503cc273be933c789525f1 | Ran: 2026-11-10 (local runner, replicating .github/workflows/ci.yml)

Check Status Duration
Install dependencies (pnpm install, pnpm 10.26.0) ✅ 16s
Build (pnpm run build = tsc -noEmit + esbuild) ✅ 11s
Tests (pnpm run test --passWithNoTests) ❌ 27s
Lint ➖ not in CI workflow, not run –

Overall: ❌ 1 check failed (unrelated to this PR's diff)

Tests: 1716 passed, 2 failed in the full run (133/135 suites passed). On rerun of just those two suites, 1 still fails (deterministic) and 1 passes (flaky).

Failures

pnpm run test

FAIL src/__tests__/CanvasTaskUpdater.test.ts
  ● CanvasTaskUpdater › updateCanvasTask › should handle canvas file monitoring and updates correctly
    Expected substring: "✅ 2026-11-10"
    Received string:    "# File Monitoring Test
    - [x] Initial task ✅ 2026-11-11
    ..."
    at src/__tests__/CanvasTaskUpdater.test.ts:881

FAIL src/__tests__/chinese-tag-performance.test.ts   (flaky: passed on both reruns)
  ● should efficiently parse large number of Chinese nested tags
    Expected: < 100   Received: 109.82

Analysis: This PR only changes src/styles/quick-capture.scss, so neither failure comes from it.

  • CanvasTaskUpdater: the test builds expectedDate with toISOString() (UTC) but the code under test writes the local date. It fails whenever local TZ date differs from UTC date. It's a test bug, and it fails on any branch on this host.
  • chinese-tag-performance: hard 100ms wall-clock threshold, flaky under load. 109ms in the full parallel run, passed in isolation.

Warnings

  • dist/main.js is 2.5mb (esbuild size warning).
  • packages/calendar prepare: API Extractor bundled TS 5.4.2 vs project TS 5.9.3 (non-fatal).
  • pnpm ignored build scripts for @parcel/watcher, sharp, workerd.

@dbdefault

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

3 similar comments
@dbdefault

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@dbdefault

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@dbdefault

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quick capture panel buttons hidden by the status bar

2 participants