Skip to content

Commit

Permalink
Merge pull request #2419 from jozefpetro/searchbox-result-item-templa…
Browse files Browse the repository at this point in the history
…te-fix

Edited template of search box result item to fix overflow text in row
  • Loading branch information
Hypnosphi authored Dec 5, 2017
2 parents eedd257 + fefcfe7 commit 2046835
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ui/src/modules/ui/components/search_box.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ const suggestionTemplate = (props, state, styles) =>
state.results.map((val, i) => {
const style = state.selectedIndex === i ? styles.selectedResultStyle : styles.resultsStyle;
return (
<div key={val.value} style={style}>
{val.value}
<span style={{ float: 'right', opacity: 0.5 }}>
<div key={val.value} style={{ ...style, display: 'flex', justifyContent: 'space-between' }}>
<p style={{ margin: 0 }}>{val.value}</p>
<p style={{ opacity: 0.5, margin: 0, paddingLeft: 10, textAlign: 'right' }}>
{val.type === 'story' ? `in ${val.kind}` : 'Kind'}
</span>
</p>
</div>
);
});
Expand Down

0 comments on commit 2046835

Please sign in to comment.