Update layout

This commit is contained in:
isaac 2026-06-02 17:49:01 +02:00
parent f6da30da70
commit e0fe0301bf
2 changed files with 9 additions and 3 deletions

View file

@ -20,12 +20,18 @@ func spacingBetweenBlocks(upper: InstantPageBlock?, lower: InstantPageBlock?, fi
} else { } else {
return 25.0 return 25.0
} }
case (_, .blockQuote), (.blockQuote, _), (_, .pullQuote), (.pullQuote, _): case (_, .blockQuote), (.blockQuote, _):
if fitToWidth { if fitToWidth {
return 11.0 return 11.0
} else { } else {
return 27.0 return 27.0
} }
case (_, .pullQuote), (.pullQuote, _):
if fitToWidth {
return 14.0
} else {
return 27.0
}
case (.kicker, .title), (.cover, .title): case (.kicker, .title), (.cover, .title):
return 16.0 return 16.0
case (_, .title): case (_, .title):

View file

@ -2374,8 +2374,8 @@ private func layoutQuoteText(
let lineWidth = boundingWidth - horizontalInset * 2.0 let lineWidth = boundingWidth - horizontalInset * 2.0
let topLine = InstantPageV2ShapeItem( let topLine = InstantPageV2ShapeItem(
frame: CGRect(x: horizontalInset, y: contentHeight, width: lineWidth, height: 1.0), frame: CGRect(x: horizontalInset, y: contentHeight, width: lineWidth, height: 1.0),
kind: .line(thickness: 1.0), kind: .line(thickness: UIScreenPixel),
color: context.theme.textCategories.caption.color color: context.theme.separatorColor
) )
result.append(.shape(topLine)) result.append(.shape(topLine))
contentHeight += 1.0 + verticalInset // rule + small gap before body text contentHeight += 1.0 + verticalInset // rule + small gap before body text