Introduce row truncation

Summary:
Changelog: Logs plugin will now automatically truncate long lines

...for a more pleasant experience where long messages don't distort things to much. (Made the buttons purple in a next diff for better contrast)

Reviewed By: passy

Differential Revision: D27395517

fbshipit-source-id: 733cd6329b979453ef3b428693be8c47c37adf4d
This commit is contained in:
Michel Weststrate
2021-03-31 03:42:59 -07:00
committed by Facebook GitHub Bot
parent f25d189aa5
commit b597da01e7
2 changed files with 58 additions and 3 deletions

View File

@@ -97,7 +97,11 @@ function createColumnConfig(
key: 'message',
title: 'Message',
wrap: true,
formatters: [DataFormatter.prettyPrintJson, DataFormatter.linkify],
formatters: [
DataFormatter.truncate(400),
DataFormatter.prettyPrintJson,
DataFormatter.linkify,
],
},
];
}