From d33fb10b9abac81d8db16e39d4334a855a99b8c3 Mon Sep 17 00:00:00 2001 From: Nicolas Chevobbe Date: Fri, 25 Jan 2019 17:15:19 +0000 Subject: [PATCH] Bug 1486870 - Don't display the location element as block; r=fvsch. Having the element displayed as a block cause some new lines to be added the clipboard when doing a selection and copying. This would also break the changes we are doing in the "Copy message" context menu entry. Differential Revision: https://phabricator.services.mozilla.com/D17377 --HG-- extra : moz-landing-system : lando --- devtools/client/themes/webconsole.css | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/devtools/client/themes/webconsole.css b/devtools/client/themes/webconsole.css index b4166775f52c..30e2b4b50e31 100644 --- a/devtools/client/themes/webconsole.css +++ b/devtools/client/themes/webconsole.css @@ -266,23 +266,19 @@ a { max-width: 40vw; flex-shrink: 0; color: var(--frame-link-source); - margin-inline-start: 1ch; -} - -.message-location:empty { - display: none; -} - -.message-location .frame-link-source { + margin-left: 1ch; /* Makes the file name truncated (and ellipsis shown) on the left side */ direction: rtl; - display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: end; } +.message-location:empty { + display: none; +} + .message-location .frame-link-source-inner { /* Enforce LTR direction for the file name - fixes bug 1290056 */ direction: ltr; @@ -338,7 +334,8 @@ a { .message.network .status { flex: none; - margin-inline-start: 1ch; + cursor: default; + margin-left: 1ch; cursor: default; }