Repository navigation
Conversation
Add margin-bottom to .quick-capture-panel so its Submit/Cancel buttons are not hidden behind Obsidian's floating status bar. Closes taskgenius#588
Automated Code ReviewRisk Level: Very Low — no detailed review required. Safe to merge. What changed: One-line CSS addition in |
Local CI ResultsPR: #596 | SHA:
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
|
|
I have read the CLA Document and I hereby sign the CLA |
3 similar comments
|
I have read the CLA Document and I hereby sign the CLA |
|
I have read the CLA Document and I hereby sign the CLA |
|
I have read the CLA Document and I hereby sign the CLA |
Description
Adds
margin-bottom: var(--size-4-5)to.quick-capture-panelinsrc/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-5is an Obsidian size variable that the plugin already uses elsewhere (for examplesrc/styles/onboarding.scss:1514,margin-bottom: var(--size-4-5)).Type of Change
Checklist
Testing
Built from this branch with the
packages/calendarsubmodule checked out at its pinned commit3cb5706and built bypnpm install:pnpm run buildexits 0. The compileddist/styles.csscontains.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-bottomwithposition: sticky; bottom: 0around 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; withmargin-bottom: var(--size-4-5)(32px) the overlap was 0px, the same result as the issue's.cm-panels-bottom .quick-capture-panelselector. 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/calendarsubmodule 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 (CanvasTaskUpdaterand 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.