mirror of https://github.com/vector-im/riot-web
Merge pull request #2746 from matrix-org/bwindels/flairnolayout
Prevent flair pushing timeline downwardspull/21833/head
commit
96196d8c3d
|
@ -58,13 +58,17 @@ limitations under the License.
|
||||||
.mx_EventTile .mx_SenderProfile .mx_Flair {
|
.mx_EventTile .mx_SenderProfile .mx_Flair {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
height: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
.mx_EventTile .mx_SenderProfile .mx_Flair img {
|
img {
|
||||||
vertical-align: -2px;
|
vertical-align: -2px;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mx_EventTile .mx_MessageTimestamp {
|
.mx_EventTile .mx_MessageTimestamp {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -117,7 +117,7 @@ export default class Flair extends React.Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
if (this.state.profiles.length === 0) {
|
if (this.state.profiles.length === 0) {
|
||||||
return <div />;
|
return <span className="mx_Flair" />;
|
||||||
}
|
}
|
||||||
const avatars = this.state.profiles.map((profile, index) => {
|
const avatars = this.state.profiles.map((profile, index) => {
|
||||||
return <FlairAvatar key={index} groupProfile={profile} />;
|
return <FlairAvatar key={index} groupProfile={profile} />;
|
||||||
|
|
Loading…
Reference in New Issue