From ce51d98e4f7e83bc23101dc980e9017ee6aeb210 Mon Sep 17 00:00:00 2001 From: vsandvold Date: Mon, 6 Mar 2017 10:00:31 +0100 Subject: [PATCH] makes the history diff use all available space --- frontend/src/component/history/history-item-diff.jsx | 2 +- .../src/component/history/history-list-component.jsx | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/component/history/history-item-diff.jsx b/frontend/src/component/history/history-item-diff.jsx index 3e921c94ac..0900d0233e 100644 --- a/frontend/src/component/history/history-item-diff.jsx +++ b/frontend/src/component/history/history-item-diff.jsx @@ -77,7 +77,7 @@ class HistoryItem extends PureComponent { changes =
{JSON.stringify(entry.data, null, 2)}
; } - return (
+        return (
             {changes.length === 0 ? '(no changes)' : changes}
         
); } diff --git a/frontend/src/component/history/history-list-component.jsx b/frontend/src/component/history/history-list-component.jsx index c72c8d6e8a..9e0367cba1 100644 --- a/frontend/src/component/history/history-list-component.jsx +++ b/frontend/src/component/history/history-list-component.jsx @@ -20,6 +20,10 @@ class HistoryList extends Component { return null; } + const truncateTableCell = v => ( + {v} + ); + let entries; if (showData) { @@ -33,12 +37,12 @@ class HistoryList extends Component { }, entry)) } className={commonStyles.fullwidth} - style={{ border: 0 }} + style={{ border: 0, tableLayout: 'fixed', minWidth: '840px' }} > - Type - User + Type + User Diff - Time + Time ); }