mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 01:25:36 +00:00
Fix suggestions box style for long names
This commit is contained in:
parent
edefd87adf
commit
aa9d48343d
|
@ -30,11 +30,15 @@ const itemStyle = {
|
||||||
|
|
||||||
const displayNameStyle = {
|
const displayNameStyle = {
|
||||||
display: 'block',
|
display: 'block',
|
||||||
fontWeight: '500'
|
fontWeight: '500',
|
||||||
|
overflow: 'hidden',
|
||||||
|
textOverflow: 'ellipsis'
|
||||||
};
|
};
|
||||||
|
|
||||||
const acctStyle = {
|
const acctStyle = {
|
||||||
display: 'block'
|
display: 'block',
|
||||||
|
overflow: 'hidden',
|
||||||
|
textOverflow: 'ellipsis'
|
||||||
};
|
};
|
||||||
|
|
||||||
const SuggestionsBox = React.createClass({
|
const SuggestionsBox = React.createClass({
|
||||||
|
@ -46,7 +50,7 @@ const SuggestionsBox = React.createClass({
|
||||||
mixins: [PureRenderMixin],
|
mixins: [PureRenderMixin],
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
const accounts = this.props.accounts.take(2);
|
const accounts = this.props.accounts.take(3);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={outerStyle}>
|
<div style={outerStyle}>
|
||||||
|
|
Loading…
Reference in a new issue