Merge pull request #1178 from matrix-org/luke/fix-rte-truncate

Only truncate autocomplete pulls of Emoji, Room and UserProvider
This commit is contained in:
Luke Barnard 2017-07-04 17:08:39 +01:00 committed by GitHub
commit 5c10e352bb
3 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ export default class EmojiProvider extends AutocompleteProvider {
} }
renderCompletions(completions: [React.Component]): ?React.Component { renderCompletions(completions: [React.Component]): ?React.Component {
return <div className="mx_Autocomplete_Completion_container_pill"> return <div className="mx_Autocomplete_Completion_container_pill mx_Autocomplete_Completion_container_truncate">
{completions} {completions}
</div>; </div>;
} }

View File

@ -78,7 +78,7 @@ export default class RoomProvider extends AutocompleteProvider {
} }
renderCompletions(completions: [React.Component]): ?React.Component { renderCompletions(completions: [React.Component]): ?React.Component {
return <div className="mx_Autocomplete_Completion_container_pill"> return <div className="mx_Autocomplete_Completion_container_pill mx_Autocomplete_Completion_container_truncate">
{completions} {completions}
</div>; </div>;
} }

View File

@ -115,7 +115,7 @@ export default class UserProvider extends AutocompleteProvider {
} }
renderCompletions(completions: [React.Component]): ?React.Component { renderCompletions(completions: [React.Component]): ?React.Component {
return <div className="mx_Autocomplete_Completion_container_pill"> return <div className="mx_Autocomplete_Completion_container_pill mx_Autocomplete_Completion_container_truncate">
{completions} {completions}
</div>; </div>;
} }