Improve the Data panel's data display with monospaced text and copyable number values (#4040)

* Improve the Data panel's data display with monospaced text and copyable number values

* Revert attempted fix for dropdown menus appearing lower in scrolled Properties panel, since it makes other floating menus freeze the app

* Code review
This commit is contained in:
Keavon Chambers
2026-04-23 15:32:18 -07:00
committed by GitHub
parent e2117d9a02
commit fcf9396a71
9 changed files with 74 additions and 32 deletions
+18
View File
@@ -261,9 +261,27 @@
font-weight: 400;
font-size: 14px;
line-height: 1;
tab-size: 4;
color: var(--color-e-nearwhite);
}
body,
textarea,
input {
&::selection {
background-color: var(--color-4-dimgray);
// Target only Safari
@supports (background: -webkit-named-image(i)) {
& {
// Setting an alpha value opts out of Safari's "fancy" (but not visible on dark backgrounds) selection highlight rendering
// https://stackoverflow.com/a/71753552/775283
background-color: rgba(var(--color-4-dimgray-rgb), calc(254 / 255));
}
}
}
}
svg,
img {
display: block;