Skip to content

Improvement: Tighten code/text preview typography and syntax colors #2785

Closed

Description

@yannickmonney

Problem

The file/code preview (workspace and related text viewers) is hard to read: line height feels too large, and syntax coloring does not fit the product chrome well.

Current behaviour

  • CodeViewer (services/platform/app/features/workspace/viewers/code-viewer.tsx) uses leading-relaxed on highlighted and fallback code, Shiki themes github-light / github-dark, plus .code-line-numbers from packages/ui/src/globals.css.
  • Same stack is reused by code-file-viewer.tsx, document text preview (document-preview-text.tsx), and skill asset viewer.
  • Shared highlighter: packages/ui/src/markdown/shiki.ts / lib/utils/shiki.ts.

Proposed change

  • Reduce line height for code/text preview to a denser editor-like rhythm (closer to leading-normal / a fixed line-height suited to mono text-xs/text-sm).
  • Revisit Shiki theme choice or token colors so highlighting contrasts cleanly on Tale light/dark surfaces without a floating “github box” feel (bg-transparent already strips theme chrome — tune token palette / theme pair).
  • Keep line numbers, wrap toggle, and oversize cutoff behaviour; only typography + color quality.
  • Apply consistently across workspace code viewer, document text/code preview, and skill asset preview.

Acceptance criteria

  • Code preview line height is visually tighter and comparable to a normal editor (no airy leading-relaxed feel).
  • Syntax colors are readable on both themes and do not clash with the canvas background.
  • Line numbers and wrap mode still align (no gutter jump).
  • Spot-check at least: .ts/.tsx, .json, .md, plaintext.

Affected service

Platform (web app)

Activity

  1. added
    agent-ready
    on Oct 29, 2026
  2. added a commit that references this issue on Oct 30, 2026
    af2a431
  3. added 3 commits that reference this issue on Oct 31, 2026
    91062c6
    b1b9f49
    4d114f6
  4. tale-code-bot commented on Oct 31, 2026

    @tale-code-bot
    Collaborator

    Landed on the feature line: feature train #5184 merged into release/0.6 on 2026-10-31 by rebase, and this issue's change is commit 4d114f6 (feat(ui): set read-only code on one 1.5 line height, task TALE-14). It ships with Tale 0.6.0. GitHub closes an issue only for a commit on main, so the feature-train role closes it here.

  5. added 6 commits that reference this issue on Oct 31, 2026
    b01b924
    ca4b870
    f9d86d9
    76836ff
    49c6e73
    2bbe046
  6. 1 remaining item

  7. added 13 commits that reference this issue on Nov 2, 2026
    cf075f2
    4df004b
    5f0ac6a
    bb75828
    d498a50
    dff59c1
    4d163aa
    a43a9c6
    78686fc
    0f3d24d
    521caa0
    bd61651
    17f913a
  8. added a commit that references this issue on Nov 15, 2026
    d19566e
  9. added a commit that references this issue on Nov 23, 2026
    c535455
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

    agent-readyimprovementservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions