Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2746 from matrix-org/bwindels/flairnolayout
Browse files Browse the repository at this point in the history
Prevent flair pushing timeline downwards
  • Loading branch information
bwindels committed Mar 5, 2019
2 parents 534ca0e + 624572d commit 96196d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,16 @@ limitations under the License.
.mx_EventTile .mx_SenderProfile .mx_Flair {
opacity: 0.7;
margin-left: 5px;
}

.mx_EventTile .mx_SenderProfile .mx_Flair img {
vertical-align: -2px;
margin-right: 2px;
border-radius: 8px;
display: inline-block;
vertical-align: top;
height: 16px;
overflow: hidden;

img {
vertical-align: -2px;
margin-right: 2px;
border-radius: 8px;
}
}

.mx_EventTile .mx_MessageTimestamp {
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/elements/Flair.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} />;
Expand Down

0 comments on commit 96196d8

Please sign in to comment.