Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>

This commit is contained in:
Matt Bruce 2025-09-10 15:35:23 -05:00
parent 78ada0862a
commit 51829ebcdf

View File

@ -44,11 +44,11 @@ enum FontUtils {
if isPortrait {
// In portrait, height is the limiting factor
// Account for separators and spacing
let separatorHeight = availableHeight * 0.05 // 5% for separators (reduced further)
let separatorHeight = availableHeight * 0.08 // 8% for separators (more conservative)
let contentHeight = availableHeight - separatorHeight
let estimatedLines = showSeconds ? 3 : 2 // HH, MM, SS or HH, MM
let lineHeight = contentHeight / CGFloat(estimatedLines)
optimalSize = lineHeight * 0.9 // 90% of line height for actual text (increased)
optimalSize = lineHeight * 0.75 // 75% of line height for actual text (more conservative)
} else {
// In landscape, be more aggressive with space usage
// Account for separators and spacing
@ -409,16 +409,16 @@ enum FontUtils {
let optimalSize: CGFloat
if isPortrait {
// In portrait, use most of the available height
let contentHeight = availableHeight * 0.95 // Use 95% of available height (increased)
let contentHeight = availableHeight * 0.95
let estimatedLines = showSeconds ? 3 : 2
let lineHeight = contentHeight / CGFloat(estimatedLines)
optimalSize = lineHeight * 0.9 // Use 90% of line height (increased)
optimalSize = lineHeight * 0.8
} else {
// In landscape, use most of the available width
let contentWidth = availableWidth * 0.90 // Use 90% of available width (reduced for safety)
let contentWidth = availableWidth * 0.93
let estimatedColumns = showSeconds ? 3 : 2
let columnWidth = contentWidth / CGFloat(estimatedColumns)
optimalSize = columnWidth * 0.75 // Use 75% of column width (reduced for safety)
optimalSize = columnWidth * 0.75
}
// Apply reasonable bounds