Skip to content

ui(editor): margin + bordered card separating the editor area from the modal chrome #99

Closed

Description

@falbany

Follow-up to the YAML config editor (#95), identified in the post-implementation review. Depends on the theme tokens from the "solid VSCode-style CodeMirror theme" issue.

Problem

The CodeMirror host (<div ref={editorHostRef} className="h-full" /> in ConfigEditorModal.tsx) touches all modal edges. The editor area is visually fused with the modal border — no margin, no card — it reads as part of the modal chrome instead of an editing surface.

Proposed solution

  • Wrap the editor body in a padded container with a rounded, bordered card:
    • body: p-3 sm:p-4 (tokens from the theme issue),
    • card: rounded-lg border border-[--app-editor-border] bg-[--app-editor-bg] overflow-hidden,
    • CodeMirror already fills at height: 100%.
  • Render the loading spinner and the load-error state inside the same card so the layout does not jump between states.
  • Keep the status bar / issues panel (separate issue) outside the card.

Acceptance criteria

  • Visible margin on all four sides between the editor area and the modal chrome.
  • Gutter and line content sit inside the card; card radius clips the editor cleanly.
  • No double scrollbars; the card scrolls its editor content only.
  • Loading and error states render within the card.

Tests

  • Vitest layout smoke test: the editor host is nested in the card container (structural assertion).
  • Visual check on both themes.

Activity

  1. added
    enhancement
    frontend
    on Nov 4, 2026
  2. added this to the v1.0.0 milestone on Nov 4, 2026
  3. added a commit that references this issue on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrontend

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions