Skip to content

feat: align inputs and compact layout in Time Entries dialog (#2742) - #2749

Merged
callumalpass merged 2 commits into
mainfrom
feat/2742-time-entry-dialog-layout
Nov 30, 2026
Merged

callumalpass merged 2 commits into
mainfrom
feat/2742-time-entry-dialog-layout

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Closes #2742.

Summary

  • Aligned Start and End inputs: Changed .time-entry-editor-modal__time-container setting rows so .setting-item-info uses flex: 1 1 0; min-width: 0; margin: 0 and non-description .setting-item-control columns use a fixed 228px right-aligned track (flex: 0 0 228px). Both Start and End inputs now share the exact same left edge (272px from row left) and width (228px) regardless of label length, including longer translated labels.
  • Compact vertical layout:
    • Replaced per-row .setting-item vertical padding (padding-block: 8px from kit.css / time-entry-editor-modal.css) with padding: 0; min-height: 0 and a uniform 6px (var(--size-2-3)) flex gap on .time-entry-editor-modal__time-container.
    • Tightened entry card padding (8px 12px), inter-card margin (8px, 0 on last child), header spacing (4px), desktop delete button size (var(--tn-control-sm) / 24px), and description box minimum height (56px, still resizable up to 200px).
    • Removed the duplicate divider line between "Add time entry" and the footer.
    • Added @media (max-width: 600px) rules so narrow/mobile viewports stack labels above full-width aligned inputs and preserve var(--tn-touch-target) (40px) touch targets on the delete button.
  • Leaves .time-entry-editor-modal__description-editor .cm-content untouched so it merges cleanly alongside Restore left padding in the time entry description editor #2738.
  • Updated docs/releases/unreleased.md.

Before / After (Obsidian default theme, verified in desk)

Before (271px / entry; Start 308px @ 180px vs End 224px @ 264px) After (201px / entry; both 228px @ 272px)
Before After

Validation

  • Verified in desk with Obsidian default light theme, default dark theme, long Spanish label, and mobile layout (--mobile).
  • npm run build
  • npm run lint (lint:ts, lint:review-types, lint:css, lint:architecture)
  • npm run lint:css:dist
  • npm run check:bundle-size
  • node --test tests/scripts/stylelint-design-tokens.test.mjs

@callumalpass
callumalpass merged commit 03f3502 into main Nov 30, 2026
3 checks passed
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.

[FR]: Tidier layout for the Time Entries dialog

1 participant