Skip to content

Commit

Permalink
Bug 1841268 - [devtools] Prevent variable tooltip to wrap too soon. r…
Browse files Browse the repository at this point in the history
…=devtools-reviewers,bomsy.

Differential Revision: https://phabricator.services.mozilla.com/D182569
  • Loading branch information
nchevobbe committed Jul 4, 2023
1 parent 5bd23a9 commit b22dedd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion devtools/client/themes/tooltips.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,19 @@ strong {

/* Tooltip: CSS variables tooltip */

.devtools-tooltip-css-variable,
.devtools-tooltip-css-variable {
color: var(--theme-body-color);
padding: 2px 8px;
direction: ltr;
/* Try to show the content of the tooltip on a single line */
inline-size: max-content;
word-break: break-word;
max-inline-size: 100vw;
}


/* Tooltip: Compatibility tooltip */

.devtools-tooltip-css-compatibility {
color: var(--theme-body-color);
padding: 2px;
Expand Down

0 comments on commit b22dedd

Please sign in to comment.