]> cat aescling's git repositories - mastodon.git/commitdiff
Fix suggestions box style for long names
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 15 Oct 2016 11:05:37 +0000 (13:05 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 15 Oct 2016 11:05:37 +0000 (13:05 +0200)
app/assets/javascripts/components/features/compose/components/suggestions_box.jsx

index 289260f12bf2f2d68c11088e3a9b94d636eecab3..baff317d7690f6cd8e4bdce47e69f7bb2ccaf337 100644 (file)
@@ -30,11 +30,15 @@ const itemStyle = {
 
 const displayNameStyle = {
   display: 'block',
-  fontWeight: '500'
+  fontWeight: '500',
+  overflow: 'hidden',
+  textOverflow: 'ellipsis'
 };
 
 const acctStyle = {
-  display: 'block'
+  display: 'block',
+  overflow: 'hidden',
+  textOverflow: 'ellipsis'
 };
 
 const SuggestionsBox = React.createClass({
@@ -46,7 +50,7 @@ const SuggestionsBox = React.createClass({
   mixins: [PureRenderMixin],
 
   render () {
-    const accounts = this.props.accounts.take(2);
+    const accounts = this.props.accounts.take(3);
 
     return (
       <div style={outerStyle}>