Skip to content

Conversation

@Mnickii
Copy link
Collaborator

@Mnickii Mnickii commented May 12, 2023

Closes #2217

PR Type

Bugfix

Description of the changes

Fixes issue where avatar is squished and lines wrap on whitespace when window width is decreased.

PR checklist

  • Project builds (yarn build) and changes have been tested in at least two supported browsers (Edge + non-Chromium based browser)
  • All public APIs (classes, methods, etc) have been documented following the jsdoc syntax
  • Stories have been added and existing stories have been tested
  • Added appropriate documentation. Docs PR:
  • License header has been added to all new source files (yarn setLicense)
  • Contains NO breaking changes

Other information

@Mnickii Mnickii requested a review from musale May 12, 2023 10:01
@ghost
Copy link

ghost commented May 12, 2023

Thank you for creating a Pull Request @Mnickii.

This is a checklist for the PR reviewer(s) to complete before approving and merging this PR:

  • I have verified a documentation PR has been linked and is approved (or not applicable)
  • I have ran this PR locally and have tested the fix/feature
  • I have verified that stories have been added to storybook (or not applicable)
  • I have tested existing stories in storybook to verify no regression has occured
  • I have tested the solution in at least two browsers (Edge + 1 non-Chromium based browser)

@github-actions
Copy link

The updated storybook is available here

musale
musale previously approved these changes May 12, 2023
@Mnickii Mnickii requested a review from gavinbarron May 12, 2023 11:04
@sebastienlevert
Copy link
Contributor

I see inconsistencies in the behavior. Where some titles (line 1) are overflowing, other are now. Based on the initial bug, I think we should tackle both. Thoughts?

image

@gavinbarron
Copy link
Member

To prevent wrapping and do ellipsis truncation we need to force a single line and have a (min)-width that the element can be.

What minimum width should we limit this component to?
If we do this then we should also expose a new css prop to allow developers to customize this based on their needs

@sebastienlevert
Copy link
Contributor

Absolutely agree! @yejuntak what would be a good min-width in this case?

@yejuntak
Copy link
Contributor

I need little bit more details on it. From Fluent UI, if we are creating persona, we should be follow this below

Persona

Looks like Fluent relative on size, depending on the size of the Avatar. However, on MGT Library, the largest component's minimum was 168px.

Can we try on 168px?

@github-actions
Copy link

The updated storybook is available here

@musale musale requested a review from a team as a code owner May 22, 2023 11:06
@github-actions
Copy link

The updated storybook is available here

Signed-off-by: Martin Musale <martinmusale@microsoft.com>
Signed-off-by: Martin Musale <martinmusale@microsoft.com>
@github-actions
Copy link

The updated storybook is available here

1 similar comment
@github-actions
Copy link

The updated storybook is available here

Copy link
Contributor

@sebastienlevert sebastienlevert left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@gavinbarron gavinbarron left a comment

Choose a reason for hiding this comment

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

LGTM

@gavinbarron gavinbarron enabled auto-merge (squash) May 26, 2023 09:48
@github-actions
Copy link

The updated storybook is available here

@gavinbarron gavinbarron merged commit fbd397d into next/fluentui May 26, 2023
@gavinbarron gavinbarron deleted the fix/person-responsiveness branch May 26, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG] Person Component Responsive Issues in v3.0.0-Preview.1

6 participants