mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-25 13:16:11 +03:00
Fix conflicting constraints issue
This commit is contained in:
@ -285,9 +285,9 @@ class TerminalWindow: NSWindow {
|
|||||||
toolbarStyle = .unifiedCompact
|
toolbarStyle = .unifiedCompact
|
||||||
if let resetZoomItem = terminalToolbar.items.first(where: { $0.itemIdentifier == .resetZoom }) {
|
if let resetZoomItem = terminalToolbar.items.first(where: { $0.itemIdentifier == .resetZoom }) {
|
||||||
resetZoomItem.view = resetZoomToolbarButton
|
resetZoomItem.view = resetZoomToolbarButton
|
||||||
resetZoomItem.view?.translatesAutoresizingMaskIntoConstraints = false
|
resetZoomItem.view!.removeConstraints(resetZoomItem.view!.constraints)
|
||||||
resetZoomItem.view?.widthAnchor.constraint(equalToConstant: 22).isActive = true
|
resetZoomItem.view!.widthAnchor.constraint(equalToConstant: 22).isActive = true
|
||||||
resetZoomItem.view?.heightAnchor.constraint(equalToConstant: 20).isActive = true
|
resetZoomItem.view!.heightAnchor.constraint(equalToConstant: 20).isActive = true
|
||||||
}
|
}
|
||||||
updateResetZoomTitlebarButtonVisibility()
|
updateResetZoomTitlebarButtonVisibility()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user