Skip to content

feat(tui): add content_padding option to control horizontal content margins - #25146

Closed
alohaninja wants to merge 1 commit into
anomalyco:devfrom
alohaninja:feat/tui-content-padding
Closed

alohaninja wants to merge 1 commit into
anomalyco:devfrom
alohaninja:feat/tui-content-padding

Conversation

@alohaninja

@alohaninja alohaninja commented Apr 30, 2026 •

Copy link
Copy Markdown

Summary

  • Adds a new content_padding option to tui.json that lets users configure horizontal padding of the main content area
  • Replaces the hardcoded paddingLeft={2} / paddingRight={2} and the - 4 in the contentWidth calculation with a configurable value
  • Default is 2, preserving current behavior — users can set 0 for full-width content
pr25146-tui-content-padding

Usage

// tui.json
{
  "content_padding": 0 // 0 = minimal margins, up to 20
}

Changes

  • tui-schema.ts — Added content_padding to TuiOptions (integer, 0-20, optional, default 2)
  • session/index.tsx — Read tuiConfig.content_padding and use it for both the <box> padding props and the contentWidth memo

Related

Closes #25142 (feature request for configurable content width)
Related to #838 (previously closed layout width request)

…argins

Add a new content_padding option to tui.json that lets users configure the
horizontal padding of the main content area. This replaces the hardcoded
paddingLeft/paddingRight=2 on the session container and the corresponding
contentWidth calculation.

Users can set this in tui.json:

  { "content_padding": 0 }

The value is an integer from 0-20 (default: 2, preserving current behavior).

Closes anomalyco#25142
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 30, 2026
@github-actions github-actions Bot closed this Apr 30, 2026
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.

[FEATURE]: Add tui.json option to control content area max-width / horizontal padding

1 participant