Skip to content

Commit

Permalink
Fix insets when using TGNoCard (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
nighthawk authored Mar 26, 2023
1 parent 440c3de commit 8b5e185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TGCardViewController/TGCardViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ open class TGCardViewController: UIViewController {

if cardIsNextToMap(in: traitCollection) {
// The map is to the right of the card, which we account for when not collapsed
let ignoreCard = position == .collapsed && traitCollection.verticalSizeClass == .regular
let ignoreCard = (position == .collapsed && traitCollection.verticalSizeClass == .regular) || cardWrapperShadow.isHidden
left = ignoreCard ? 0 : cardWrapperShadow.frame.maxX
bottom = 0
top = topOverlap
Expand Down

0 comments on commit 8b5e185

Please sign in to comment.