-
-
Notifications
You must be signed in to change notification settings - Fork 833
Conversation
Signed-off-by: Michael Telatynski <[email protected]>
… t3chguy/remove_avatar � Conflicts: � src/components/views/settings/ProfileSettings.js
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
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 also looks like the design implies that the context menu goes overtop of the box rather than to the right of it
if (disabled) return; | ||
|
||
if (e.keyCode === KeyCode.ENTER || e.keyCode === KeyCode.SPACE) { | ||
onChange(!checked); | ||
e.stopPropagation(); | ||
e.preventDefault(); |
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.
unrelated changes should probably be in their own PR for next time
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.
Yup
import sdk from "../../../index"; | ||
|
||
// TODO: Why is rendering a box with an overlay so complicated? Can the DOM be reduced? | ||
const AvatarSetting = (props) => { |
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.
ooi why a function with a bunch of bootstrap instead of a tiny PureComponent class?
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.
Ability to use useContextMenu
hook simplifies things
Superseded by #3733 |
Fixes element-hq/element-web#8456
Fixes element-hq/element-web#11287
Based on
🎈