Constrain tab bar left of update notice

ghostty
Unlisted
The "right accessory view" and layout of @macos/Sources/Features/Terminal/Window Styles/TitlebarTabsTahoeTerminalWindow.swift is conflictig with the update accessory view setup in @macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift Can we constrain the tab bar to always appear left of the update notice?

I've constrained the tab bar to leave 160pt of space on the right for the update accessory view. This ensures the tab bar always appears to the left of the update notice without overlapping.

This forces a constant padding, but the accesorry view may also be width 0 or dynamic. We should react to that.

You're right. Let me check the inheritance chain and find a way to dynamically constrain based on the update accessory view's actual width.

Explored 1 search

Good! So the inheritance is: TitlebarTabsTahoeTerminalWindowTransparentTitlebarTerminalWindowTerminalWindow. This means we can access the updateAccessory from the parent. Let me update the constraints to be dynamic:

Edited TitlebarTabsTahoeTerminalWindow.swift
+16
-7

Now the tab bar will dynamically constrain itself based on whether the update accessory view exists and has width. It will appear to the left of the update notice when it's visible, and extend to the right edge when it's not.