mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 05:50:27 +00:00
Rewrite constraint code for improved icon scaling/alignment
This commit is contained in:
committed by
Mitchell Hashimoto
parent
f73666a7a1
commit
e3ebdc7975
@@ -3093,8 +3093,7 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
|
||||
// its cell(s), we don't modify the alignment at all.
|
||||
.constraint = getConstraint(cp) orelse
|
||||
if (cellpkg.isSymbol(cp)) .{
|
||||
.size_horizontal = .fit,
|
||||
.size_vertical = .fit,
|
||||
.size = .fit,
|
||||
} else .none,
|
||||
.constraint_width = constraintWidth(cell_pin),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user