Skip to content

Ensure TypingIndicator wraps correctly with very long names#1123

Merged
JamesBurnside merged 13 commits intomainfrom
jaburnsi/wrap-typing-indicator
Nov 19, 2021
Merged

Ensure TypingIndicator wraps correctly with very long names#1123
JamesBurnside merged 13 commits intomainfrom
jaburnsi/wrap-typing-indicator

Conversation

@JamesBurnside
Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside commented Nov 19, 2021

What

Ensure the typing indicator can handle long names/strings by wrapping.

Why

Caused horizontal scrollbars before this

How Tested

Long names:

before after
image image

Normal names:

before after
image image

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

3 similar comments
@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

* @param vars - Variables to use to format the string
* @returns formatted JSX elements
*/
const formatInlineElements = (str: string, vars: _IObjectMap<JSX.Element>): JSX.Element[] => {
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.

why removing this from utils file and adding it here?
It might be used elsewhere in the future

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.

The reason was it wasn't used anywhere else and keeping it here would mean adding fluentui/react dependency to the acs-common package. Happy to move it back and add this dependency if people would prefer though!

Copy link
Copy Markdown
Member Author

@JamesBurnside JamesBurnside Nov 19, 2021

Choose a reason for hiding this comment

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

(Ideally this is only used by react-components package as its a very specialized util fn, but there is a chance it could be used by composites - but we should try keep good functionality in the react-components package instead of composites to pass value onto other developers)

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@JamesBurnside JamesBurnside merged commit 3326b0b into main Nov 19, 2021
@JamesBurnside JamesBurnside deleted the jaburnsi/wrap-typing-indicator branch November 19, 2021 21:44
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