-
Notifications
You must be signed in to change notification settings - Fork 6
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
Copy URL button #327
base: master
Are you sure you want to change the base?
Copy URL button #327
Conversation
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.
Sorry, can you move the copy button between search box and participant count? The Save button is important; this removes the noise from around it.
ui/src/components/CopyUrlButton.js
Outdated
|
||
const style = { | ||
copyUrlButton: { | ||
marginRight: "16px" |
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.
React will automatically append a "px" suffix so by convention we do this, to be slightly cleaner:
marginRight: 16
ui/src/components/CopyUrlButton.js
Outdated
const { className } = this.props; | ||
|
||
return ( | ||
<div onClick={this.handleButtonClick} style={style.copyUrlButton}> |
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.
It's recommended to use className rather than style.
In this repo we use the material-ui styling solution.
- At the bottom of this file:
export default withStyles(styles)(CopyUrlButton);
const { classes } = this.props;
... className={classes.copyUrlButton}
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.
Good to know, thanks! In this case, since we wanted to move the copyUrl button to the left we don't even need the extra styling. So I just removed this altogether.
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 meant between search box and participant count. I pushed a commit with the changes (and some minor styling changes), let me know what you think.
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.
Actually let me get Sean's opinion, let me remove approval
Fixes #325