Merge pull request #2746 from matrix-org/bwindels/flairnolayout

Prevent flair pushing timeline downwards
This commit is contained in:
Bruno Windels 2019-03-05 15:34:09 +01:00 committed by GitHub
commit 96196d8c3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -58,12 +58,16 @@ limitations under the License.
.mx_EventTile .mx_SenderProfile .mx_Flair {
opacity: 0.7;
margin-left: 5px;
}
display: inline-block;
vertical-align: top;
height: 16px;
overflow: hidden;
.mx_EventTile .mx_SenderProfile .mx_Flair img {
vertical-align: -2px;
margin-right: 2px;
border-radius: 8px;
img {
vertical-align: -2px;
margin-right: 2px;
border-radius: 8px;
}
}
.mx_EventTile .mx_MessageTimestamp {

View File

@ -117,7 +117,7 @@ export default class Flair extends React.Component {
render() {
if (this.state.profiles.length === 0) {
return <div />;
return <span className="mx_Flair" />;
}
const avatars = this.state.profiles.map((profile, index) => {
return <FlairAvatar key={index} groupProfile={profile} />;