Skip to content

Alkwa/fix contextmenu with lots of participants#2034

Merged
alkwa-msft merged 4 commits intomainfrom
alkwa/fix-contextmenu-with-lots-of-participants
Jun 29, 2022
Merged

Alkwa/fix contextmenu with lots of participants#2034
alkwa-msft merged 4 commits intomainfrom
alkwa/fix-contextmenu-with-lots-of-participants

Conversation

@alkwa-msft
Copy link
Copy Markdown
Contributor

What

When there are too many participants it can mess up how things scroll when there is a divider. The divider and other elements will overlap the participants in the context menu

Why

The max-height css property is incorrectly set on the wrong component. We should be setting it on the context menu as opposed to the stack that contains all of the participant elements

Before:
withoutfix

After:
withFix

How Tested

Loaded up a UI component in storybook and added some HTML elements

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

/**
* @private
*/
export const defaultParticipantListContainerStyle: ParticipantListStyles = {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This style was only ever used for this one element and it was messing us up.

maxWidth: '100%'
}
},
style: {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This properly sets the maxHeight of the people context menu to 20rem and when we scroll we won't get odd visual artifacts.

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 29, 2022

Calling bundle size is decreased✅.

  • Current size: 4739966
  • Base size: 4739977
  • Diff size: -11

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 29, 2022

Chat bundle size is not changed.

  • Current size: 4913284
  • Base size: 4913284
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 29, 2022

CallWithChat bundle size is decreased✅.

  • Current size: 5135194
  • Base size: 5135205
  • Diff size: -11

@github-actions
Copy link
Copy Markdown
Contributor

@alkwa-msft alkwa-msft enabled auto-merge (squash) June 29, 2022 19:28
@github-actions
Copy link
Copy Markdown
Contributor

@alkwa-msft alkwa-msft merged commit 078d47c into main Jun 29, 2022
@alkwa-msft alkwa-msft deleted the alkwa/fix-contextmenu-with-lots-of-participants branch June 29, 2022 19:40
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