mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
makes the history diff use all available space
This commit is contained in:
parent
d62175eb5b
commit
ce51d98e4f
@ -77,7 +77,7 @@ class HistoryItem extends PureComponent {
|
||||
changes = <div className={KLASSES.N}>{JSON.stringify(entry.data, null, 2)}</div>;
|
||||
}
|
||||
|
||||
return (<pre style={{ maxWidth: '354px', overflowX: 'auto', overflowY: 'hidden', width: 'auto' }}>
|
||||
return (<pre style={{ overflowX: 'auto', overflowY: 'hidden' }}>
|
||||
<code className="smalltext man">{changes.length === 0 ? '(no changes)' : changes}</code>
|
||||
</pre>);
|
||||
}
|
||||
|
@ -20,6 +20,10 @@ class HistoryList extends Component {
|
||||
return null;
|
||||
}
|
||||
|
||||
const truncateTableCell = v => (
|
||||
<span className={commonStyles.truncate} style={{ display: 'inline-block', verticalAlign: 'middle', width: '100%' }}>{v}</span>
|
||||
);
|
||||
|
||||
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' }}
|
||||
>
|
||||
<TableHeader name="type">Type</TableHeader>
|
||||
<TableHeader name="createdBy">User</TableHeader>
|
||||
<TableHeader name="type" cellFormatter={truncateTableCell} style={{ width: '136px' }}>Type</TableHeader>
|
||||
<TableHeader name="createdBy" cellFormatter={truncateTableCell} style={{ width: '115px' }}>User</TableHeader>
|
||||
<TableHeader name="diff">Diff</TableHeader>
|
||||
<TableHeader numeric name="createdAt" cellFormatter={formatFullDateTime}>Time</TableHeader>
|
||||
<TableHeader numeric name="createdAt" cellFormatter={formatFullDateTime} style={{ width: '165px' }}>Time</TableHeader>
|
||||
</Table>);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user