Skip to content

Commit

Permalink
revert toast change
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Oct 9, 2023
1 parent e80e15b commit 6db2f7e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions DuckDuckGo/ActionMessageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,11 @@ class ActionMessageView: UIView {
static var duration: TimeInterval = 3.0

static var windowBottomPaddingWithBottomBar: CGFloat {
// Tricky to inject, unfortuantely.
// Ideally we'd query the postion of the address bar directly.
let addressBarPosition = AppDependencyProvider.shared.appSettings.currentAddressBarPosition
let bottomAddressBarModifier: CGFloat = addressBarPosition == .bottom ? 52 : 0

if UIDevice.current.userInterfaceIdiom == .phone && !isPortrait {
return 40 + bottomAddressBarModifier
return 40
}

return 70 + bottomAddressBarModifier
return 70
}
static var windowBottomPaddingWithoutBottomBar: CGFloat {
return 0
Expand Down

0 comments on commit 6db2f7e

Please sign in to comment.