Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
78ada0862a
commit
51829ebcdf
@ -44,11 +44,11 @@ enum FontUtils {
|
|||||||
if isPortrait {
|
if isPortrait {
|
||||||
// In portrait, height is the limiting factor
|
// In portrait, height is the limiting factor
|
||||||
// Account for separators and spacing
|
// 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 contentHeight = availableHeight - separatorHeight
|
||||||
let estimatedLines = showSeconds ? 3 : 2 // HH, MM, SS or HH, MM
|
let estimatedLines = showSeconds ? 3 : 2 // HH, MM, SS or HH, MM
|
||||||
let lineHeight = contentHeight / CGFloat(estimatedLines)
|
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 {
|
} else {
|
||||||
// In landscape, be more aggressive with space usage
|
// In landscape, be more aggressive with space usage
|
||||||
// Account for separators and spacing
|
// Account for separators and spacing
|
||||||
@ -409,16 +409,16 @@ enum FontUtils {
|
|||||||
let optimalSize: CGFloat
|
let optimalSize: CGFloat
|
||||||
if isPortrait {
|
if isPortrait {
|
||||||
// In portrait, use most of the available height
|
// 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 estimatedLines = showSeconds ? 3 : 2
|
||||||
let lineHeight = contentHeight / CGFloat(estimatedLines)
|
let lineHeight = contentHeight / CGFloat(estimatedLines)
|
||||||
optimalSize = lineHeight * 0.9 // Use 90% of line height (increased)
|
optimalSize = lineHeight * 0.8
|
||||||
} else {
|
} else {
|
||||||
// In landscape, use most of the available width
|
// 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 estimatedColumns = showSeconds ? 3 : 2
|
||||||
let columnWidth = contentWidth / CGFloat(estimatedColumns)
|
let columnWidth = contentWidth / CGFloat(estimatedColumns)
|
||||||
optimalSize = columnWidth * 0.75 // Use 75% of column width (reduced for safety)
|
optimalSize = columnWidth * 0.75
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply reasonable bounds
|
// Apply reasonable bounds
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user