[PR #691] [MERGED] fix(markdown): prevent MarkdownRenderable from shrinking #1500

Closed
opened 2026-03-14 09:40:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/691
Author: @remorses
Created: 2/16/2026
Status: Merged
Merged: 2/17/2026
Merged by: @kommander

Base: mainHead: fix/markdown-flex-shrink


📝 Commits (1)

  • 578857e fix(markdown): prevent MarkdownRenderable from shrinking

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 packages/core/src/renderables/Markdown.ts (+1 -0)

📄 Description

Split from #597 to make review easier.

MarkdownRenderable inherits flexShrink: 1 by default, which causes it to collapse when placed next to large siblings in a flex layout. Setting flexShrink: 0 as default prevents this while still allowing callers to override it.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/691 **Author:** [@remorses](https://github.com/remorses) **Created:** 2/16/2026 **Status:** ✅ Merged **Merged:** 2/17/2026 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `fix/markdown-flex-shrink` --- ### 📝 Commits (1) - [`578857e`](https://github.com/anomalyco/opentui/commit/578857e58cc2ad8f8e8e8b3c5cd49e9a17fa6dbf) fix(markdown): prevent MarkdownRenderable from shrinking ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/renderables/Markdown.ts` (+1 -0) </details> ### 📄 Description Split from #597 to make review easier. MarkdownRenderable inherits flexShrink: 1 by default, which causes it to collapse when placed next to large siblings in a flex layout. Setting `flexShrink: 0` as default prevents this while still allowing callers to override it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:40:04 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1500
No description provided.