diff --git a/submodules/InstantPageUI/Sources/InstantPageLayoutSpacings.swift b/submodules/InstantPageUI/Sources/InstantPageLayoutSpacings.swift index d307fd9a50..71c8f99377 100644 --- a/submodules/InstantPageUI/Sources/InstantPageLayoutSpacings.swift +++ b/submodules/InstantPageUI/Sources/InstantPageLayoutSpacings.swift @@ -20,12 +20,18 @@ func spacingBetweenBlocks(upper: InstantPageBlock?, lower: InstantPageBlock?, fi } else { return 25.0 } - case (_, .blockQuote), (.blockQuote, _), (_, .pullQuote), (.pullQuote, _): + case (_, .blockQuote), (.blockQuote, _): if fitToWidth { return 11.0 } else { return 27.0 } + case (_, .pullQuote), (.pullQuote, _): + if fitToWidth { + return 14.0 + } else { + return 27.0 + } case (.kicker, .title), (.cover, .title): return 16.0 case (_, .title): diff --git a/submodules/InstantPageUI/Sources/InstantPageV2Layout.swift b/submodules/InstantPageUI/Sources/InstantPageV2Layout.swift index ee2a886d50..c9987acb3d 100644 --- a/submodules/InstantPageUI/Sources/InstantPageV2Layout.swift +++ b/submodules/InstantPageUI/Sources/InstantPageV2Layout.swift @@ -2374,8 +2374,8 @@ private func layoutQuoteText( let lineWidth = boundingWidth - horizontalInset * 2.0 let topLine = InstantPageV2ShapeItem( frame: CGRect(x: horizontalInset, y: contentHeight, width: lineWidth, height: 1.0), - kind: .line(thickness: 1.0), - color: context.theme.textCategories.caption.color + kind: .line(thickness: UIScreenPixel), + color: context.theme.separatorColor ) result.append(.shape(topLine)) contentHeight += 1.0 + verticalInset // rule + small gap before body text