Fix caption buttons going off-screen (#39502)

https://github.com/user-attachments/assets/27bf58df-b8c4-4730-856b-d62ec639a552

Previously the caption buttons (minimize, maximize, close) would
disappear off the right side of the title bar.

Release Notes:

- N/A

Co-authored-by: Julia Ryan <juliaryan3.14@gmail.com>
This commit is contained in:
John Tur
2025-10-03 23:25:54 +00:00
committed by GitHub
co-authored by Julia Ryan
parent 9fe46dc8d2
commit 55e68553a4
@@ -109,6 +109,7 @@ impl Render for PlatformTitleBar {
.flex_row()
.items_center()
.justify_between()
.overflow_x_hidden()
.w_full()
// Note: On Windows the title bar behavior is handled by the platform implementation.
.when(self.platform_style == PlatformStyle::Mac, |this| {