peter
0ad0ba6cfe
fix(tooltip): keep hint captions inside the viewport near screen edges
...
The tooltip clamped its centre to a fixed 92px margin, but the caption is up to 240px wide
(120px half), so a left-edge anchor (e.g. the nav-rail counts icon at x~40) pushed the centred box
~28px off the left of the viewport. Clamp with the caption's max half-width so it can't overflow on
first paint, then a useLayoutEffect re-centres on the anchor using its actual width. Verified: the
nav-rail counts tooltip now sits fully on-screen.
2026-07-04 04:45:51 +02:00
..
2026-07-01 12:46:50 +02:00
2026-06-29 00:07:37 +02:00
2026-06-15 00:30:34 +02:00
2026-06-29 00:11:44 +02:00
2026-07-02 01:45:16 +02:00
2026-06-12 18:01:43 +02:00
2026-06-30 05:18:07 +02:00
2026-06-19 11:18:20 +02:00
2026-07-02 01:45:16 +02:00
2026-06-19 03:22:10 +02:00
2026-07-01 01:00:32 +02:00
2026-07-02 01:45:16 +02:00
2026-06-26 00:00:21 +02:00
2026-06-25 22:58:29 +02:00
2026-06-29 00:07:37 +02:00
2026-06-15 15:06:47 +02:00
2026-06-29 00:11:44 +02:00
2026-06-19 11:18:20 +02:00
2026-07-03 01:52:58 +02:00
2026-07-04 04:32:31 +02:00
2026-07-03 01:52:58 +02:00
2026-06-15 00:47:04 +02:00
2026-06-18 01:17:31 +02:00
2026-07-01 01:55:05 +02:00
2026-07-03 01:52:58 +02:00
2026-06-25 22:34:24 +02:00
2026-07-01 22:50:59 +02:00
2026-06-29 00:48:18 +02:00
2026-06-26 01:37:43 +02:00
2026-07-03 01:52:58 +02:00
2026-06-29 00:22:21 +02:00
2026-06-15 00:47:04 +02:00
2026-07-03 01:52:58 +02:00
2026-07-02 01:45:16 +02:00
2026-07-03 01:52:58 +02:00
2026-06-15 00:30:34 +02:00
2026-07-02 00:37:23 +02:00
2026-07-01 01:00:32 +02:00
2026-07-02 01:45:16 +02:00
2026-06-21 01:11:16 +02:00
2026-07-04 04:32:31 +02:00
2026-07-01 23:19:06 +02:00
2026-07-02 01:45:16 +02:00
2026-07-04 04:41:13 +02:00
2026-07-02 01:45:16 +02:00
2026-06-26 00:32:17 +02:00
2026-06-17 14:28:29 +02:00
2026-07-04 04:45:51 +02:00
2026-06-15 21:52:28 +02:00
2026-06-19 11:18:20 +02:00
2026-07-03 01:52:58 +02:00
2026-07-04 03:41:18 +02:00
2026-06-30 03:08:52 +02:00
2026-07-04 04:32:31 +02:00
2026-07-02 02:14:27 +02:00