Skip to content

Make left panel better for new users (mk II) - #3804

Merged
dbkr merged 9 commits into
developfrom
dbkr/left_panel_for_newbies_2
May 8, 2017
Merged

Make left panel better for new users (mk II)#3804
dbkr merged 9 commits into
developfrom
dbkr/left_panel_for_newbies_2

Conversation

@dbkr

@dbkr dbkr commented May 4, 2017

Copy link
Copy Markdown
Member

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

@dbkr

dbkr commented May 4, 2017

Copy link
Copy Markdown
Member Author

(Tests failing because of changes required in react-sdk)


var label = this.props.collapsed ? null : this.props.label;

//console.log("render: " + JSON.stringify(this.state.sortedList));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could remove this

Copy link
Copy Markdown
Member Author

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 }/>;

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, yeah, removed

@lukebarnard1

Copy link
Copy Markdown
Contributor

@dbkr I forgot to mention that the padding around the text isn't even:
2017-05-04-175300_224x67_scrot

@lukebarnard1

Copy link
Copy Markdown
Contributor

And also, there's no chevron as per the design that points to the Room sublist header

@dbkr

dbkr commented May 4, 2017

Copy link
Copy Markdown
Member Author

Yeah, I've left Matthew to do the chevron as it'll require a special SVG to be drawn.

@dbkr

dbkr commented May 4, 2017

Copy link
Copy Markdown
Member Author

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

@lukebarnard1

Copy link
Copy Markdown
Contributor

Fair enough. @ara4n I think the buttons could do with vertical-align: -4px; when you get around to CSS tweaking.

@dbkr

dbkr commented May 4, 2017

Copy link
Copy Markdown
Member Author

Oh I see what you mean, yes (I went with -3 as it looked better to me, easy to tweak though)

@lukebarnard1 lukebarnard1 assigned dbkr and unassigned lukebarnard1 May 5, 2017
@dbkr
dbkr merged commit e613382 into develop May 8, 2017
dbkr added a commit that referenced this pull request May 17, 2017
…ewbies_2"

This reverts commit e613382, reversing
changes made to d1db602.
dbkr added a commit that referenced this pull request May 17, 2017
@t3chguy
t3chguy deleted the dbkr/left_panel_for_newbies_2 branch May 12, 2022 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants