-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make left panel better for new users (mk II) #3804
Conversation
(Tests failing because of changes required in react-sdk) |
@@ -468,16 +471,18 @@ var RoomSubList = React.createClass({ | |||
|
|||
render: function() { | |||
var connectDropTarget = this.props.connectDropTarget; | |||
var RoomDropTarget = sdk.getComponent('rooms.RoomDropTarget'); | |||
var TruncatedList = sdk.getComponent('elements.TruncatedList'); | |||
|
|||
var label = this.props.collapsed ? null : this.props.label; | |||
|
|||
//console.log("render: " + JSON.stringify(this.state.sortedList)); |
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.
could remove this
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.
done
target = <RoomDropTarget label={ 'Drop here to ' + this.props.verb }/>; | ||
let content; | ||
if (this.state.sortedList.length == 0) { | ||
//content = <RoomDropTarget label={ 'Drop here to ' + this.props.verb }/>; |
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.
This implies that it will always be "Drop here to ...". Not sure how useful that would be
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.
Hmm, yeah, removed
@dbkr I forgot to mention that the padding around the text isn't even: |
And also, there's no chevron as per the design that points to the Room sublist header |
Yeah, I've left Matthew to do the chevron as it'll require a special SVG to be drawn. |
and I think the padding is even, it's just that it's left-justified - either way I was going to leave matthew to tweak the CSS |
Fair enough. @ara4n I think the buttons could do with |
Oh I see what you mean, yes (I went with -3 as it looked better to me, easy to tweak though) |
…el_for_newbies_2"" This reverts commit 3cead03.
Implements #3609
Adds RoleButton to reduce duplication as we now have up to 3 copies of the same button.
Requires matrix-org/matrix-react-sdk#859