[css value tracing] cap the maximum width of the tooltip

See bug for screenshot.

Fixed: 404535761
Change-Id: I9d94779eb01374d377a2f6d78ed68afc711cbbc9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6415768
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
This commit is contained in:
Philip Pfaffe
2025-03-31 01:47:01 -07:00
committed by Devtools-frontend LUCI CQ
parent 78d3973605
commit 79c3b12631
@@ -38,6 +38,9 @@
--top-left, --top-center;
& .container {
max-width: calc(100vw - 2 * (/* host margin */ var(--tooltip-viewport-distance) +
/* container horizontal padding */ var(--sys-size-8) +
/* container margin */ var(--sys-size-3)));
margin-inline: 0;
margin-block: var(--sys-size-3);
color: var(--sys-color-on-surface);