mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-29 16:57:00 +08:00
[Protocol Monitor] remove manual text truncating
I think we did this when we were debugging perf issues and didn't intend to leave it in. This change means that the cell will contain the full text and then we'll let CSS truncate it. Bug: 1211346 Change-Id: Ic98d21be1972c734affdf873f58c93fc7195a94d Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2910104 Auto-Submit: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
This commit is contained in:
committed by
Devtools-frontend LUCI CQ
parent
b46cafdc6c
commit
c808e3c1c7
@@ -12,9 +12,6 @@ export const codeBlockRenderer = (value: CellValue): LitHtml.TemplateResult|type
|
||||
if (!value) {
|
||||
return LitHtml.nothing;
|
||||
}
|
||||
const MAX_LENGTH = 13;
|
||||
const stringValue = String(value);
|
||||
const truncatedValue =
|
||||
stringValue.length > MAX_LENGTH ? stringValue.substring(0, MAX_LENGTH - 3) + '...' : stringValue;
|
||||
return LitHtml.html`<code>${truncatedValue}</code>`;
|
||||
return LitHtml.html`<code>${stringValue}</code>`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user