Improve filename truncation to fit exact number of characters

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
gmp
2026-05-08 20:21:35 -04:00
co-authored by Qwen-Coder
parent 68d431408d
commit bbd16be9f2
4 changed files with 79 additions and 23 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ func NewState(screenWidth, screenHeight unit.Dp) *State {
// It takes screen dimensions and returns []Element.
func EditorLayout(screenWidth, screenHeight unit.Dp) []ui.Element {
// Margin to avoid clipping on macOS round corners
margin := unit.Dp(5)
margin := unit.Dp(10)
// Compute StatusBar region
// Line 1: filename (24 DP)