Auto-open publish history drawer

This commit is contained in:
Thomas Nordquist
2019-07-17 17:25:12 +02:00
parent ae915a158b
commit af4cfec451
4 changed files with 46 additions and 50 deletions

View File

@@ -70,7 +70,7 @@ function Publish(props: Props) {
return useMemo(
() => (
<div style={{ flexGrow: 1, marginLeft: '8px' }} onKeyDown={handleSubmit}>
<div style={{ flexGrow: 1 }} onKeyDown={handleSubmit}>
<TopicInput />
<div style={{ width: '100%', display: 'block' }}>
<EditorMode

View File

@@ -24,7 +24,7 @@ function PublishHistory(props: { history: Array<Message>; actions: typeof publis
value: message.payload || '',
}))
return <History items={items} onClick={didSelectHistoryEntry} />
return <History autoOpen={true} items={items} onClick={didSelectHistoryEntry} />
}, [props.history])
}