Skip to content

[JEWEL-1290] DefaultBanner Should not Hardcode Padding#3466

Open
DanielSouzaBertoldi wants to merge 2 commits intoJetBrains:masterfrom
DanielSouzaBertoldi:dsb/JEWEL-1290
Open

[JEWEL-1290] DefaultBanner Should not Hardcode Padding#3466
DanielSouzaBertoldi wants to merge 2 commits intoJetBrains:masterfrom
DanielSouzaBertoldi:dsb/JEWEL-1290

Conversation

@DanielSouzaBertoldi
Copy link
Copy Markdown
Collaborator

@DanielSouzaBertoldi DanielSouzaBertoldi commented Mar 20, 2026

Important

This PR is a direct continuation of #3390 , so for this PR just take a look at DefaultBanner.kt, Banners.kt and SwingComparisonTabPanel.kt

Context

DefaultBanner has a default padding value of 10.dp. This PR changes it to use whatever is set in style.metrics.padding instead. It also stops filling the entire available width and instead just wraps its content.

Changes

  • Changed .padding(10.dp) to .padding(style.metrics.padding) in the Row that wraps the banner content.
  • Add .width(IntrinsicSize.Max) to the Column that wraps the banner content.

Release notes

⚠️ Important Changes

  • *DefaultBanner no longer fills the available width by default; it now wraps its content instead. If you want banners to span the full width, be sure to add modifier = Modifier.fillMaxWidth().

Bug fixes

  • Paddings for *DefaultBanner components are now customizable

Screenshots

Before After
image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants