Improve filename truncation to fit exact number of characters
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user