mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #625] [MERGED] layout: use batched Edge values for margin/padding #667
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#667
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/625
Author: @simonklee
Created: 2/4/2026
Status: ✅ Merged
Merged: 2/4/2026
Merged by: @simonklee
Base:
main← Head:yoga-setters📝 Commits (2)
f4bcdf4layout: use batched Edge values for margin/paddingcc55967Merge branch 'main' into yoga-setters📊 Changes
2 files changed (+24 additions, -34 deletions)
View changed files
📝
packages/core/src/Renderable.ts(+12 -34)📝
packages/core/src/tests/yoga-setters.test.ts(+12 -0)📄 Description
I noticed when reviewing https://github.com/anomalyco/opentui/pull/619 that Yoga supports Edge.All, Edge.Horizontal, and Edge.Vertical to set multiple edges in a single call. Use these instead of calling setMargin or setPadding four times for uniform values or twice for axis values.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.