Files
tsunagi/crates/tsunagi-ui/src
Aleksandr Bogomiakov 6e71d8cf8c Wrap long transport tooltips within the current window
The tray's 360-point window clipped the end of the AmneziaWG description
because hover labels used egui's default 500-point tooltip width. Give the
shared hint renderer the smaller of the theme width and the viewport
width after popup margins, and explicitly wrap text. Mouse hover,
disabled controls, keyboard focus and touch now use the same layout.

Reproduced the original one-line overflow before the fix. Headless egui
checks now confirm that the complete glyph bounds of the actual AmneziaWG
description fit inside both the viewport and the tooltip clip rectangle
at widths of 360, 320 and 240 points. Checked formatting, strict workspace
Clippy and the macOS workspace test suite. Rebuilt and relaunched the
isolated preview with its existing test network.
2026-11-26 15:16:56 +02:00
..