From c808e3c1c74a36c5b80fa4587bfbeae01876fcf9 Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Thu, 20 May 2021 13:50:18 +0000 Subject: [PATCH] [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 Reviewed-by: Paul Lewis Commit-Queue: Jack Franklin --- front_end/ui/components/data_grid/DataGridRenderers.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/front_end/ui/components/data_grid/DataGridRenderers.ts b/front_end/ui/components/data_grid/DataGridRenderers.ts index accf7d90c7..b27d59439b 100644 --- a/front_end/ui/components/data_grid/DataGridRenderers.ts +++ b/front_end/ui/components/data_grid/DataGridRenderers.ts @@ -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`${truncatedValue}`; + return LitHtml.html`${stringValue}`; };