-
-
Notifications
You must be signed in to change notification settings - Fork 829
Conversation
Adds a UserView that contains a MainSplit with an empty div and a RightPanel, preset to the given member. UserView fetches the profile and creates a fake member, which it passed on to the RightPanel. this doesn't use the view_user action on purpose, to avoid any interference of the UserView when trying to view a room member.
(@bwindels says it's ready for review.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good overall! 😁 A few things to clean up here first, I think.
res/css/structures/_MainSplit.scss
Outdated
@@ -0,0 +1,21 @@ | |||
/* | |||
Copyright 2015, 2016 OpenMarket Ltd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update year and name.
action: 'view_user', | ||
member: member, | ||
}); | ||
// get profile info here somehow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this comment mean...?
}); | ||
// get profile info here somehow | ||
|
||
this.notifyNewScreen('user/' + userId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Indentation doesn't seem right here...?
let backButton; | ||
if (this.props.member.roomId) { | ||
backButton = (<AccessibleButton className="mx_MemberInfo_cancel" | ||
onClick={this.onCancel} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Indentation seems strange here
*/ | ||
|
||
.mx_MainSplit { | ||
display: flex; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess other users for MainSplit
were also setting display: flex
in more specific rule sets, so we could remove display: flex
from those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for working on it! 😁
Adds a UserView that contains a MainSplit with an empty div
and a RightPanel, preset to the given member.
UserView fetches the profile and creates a fake member, which
it passed on to the RightPanel.
this doesn't use the view_user action on purpose, to avoid any
interference of the UserView when trying to view a room member.
Fixes element-hq/element-web#8791