Skip to content

Control bar buttons should stay centered with regard to view port width#2847

Merged
carocao-msft merged 31 commits intomainfrom
carocao/controlBar
Apr 1, 2023
Merged

Control bar buttons should stay centered with regard to view port width#2847
carocao-msft merged 31 commits intomainfrom
carocao/controlBar

Conversation

@carocao-msft
Copy link
Copy Markdown
Contributor

@carocao-msft carocao-msft commented Mar 28, 2023

What

Modified callwithchat control bar styling so buttons are centered with regard to view port width

Why

https://skype.visualstudio.com/SPOOL/_workitems/edit/3183443

How Tested

callwithchat sample
tested with custom buttons

demo1.mov

To avoid call control buttons and panel control buttons overlap, at certain width we cannot center call control buttons based on viewport width anymore
So using useRef here to calculate that moment and remove the code which centers the control buttons based on viewport width
Screenshot 2023-03-29 at 8 16 44 PM

Screenshot 2023-03-29 at 8 16 30 PM

This is also why in snapshot updates you see the control bar buttons not centered to the middle, because viewport width is too small

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 28, 2023

Calling bundle size is increased❗.

  • Current size: 9508708
  • Base size: 9507617
  • Diff size: 1091

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 28, 2023

Chat bundle size is decreased✅.

  • Current size: 9575156
  • Base size: 9575225
  • Diff size: -69

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 28, 2023

CallWithChat bundle size is increased❗.

  • Current size: 9898476
  • Base size: 9897377
  • Diff size: 1099

@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 composite UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

@carocao-msft carocao-msft added the update_snapshots Set this label to request automated update of UI snapshots label Mar 28, 2023
@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@carocao-msft carocao-msft added the update_snapshots Set this label to request automated update of UI snapshots label Mar 30, 2023
@github-actions github-actions Bot removed the update_snapshots Set this label to request automated update of UI snapshots label Mar 30, 2023
@carocao-msft carocao-msft added the update_snapshots Set this label to request automated update of UI snapshots label Mar 30, 2023
@github-actions github-actions Bot removed the update_snapshots Set this label to request automated update of UI snapshots label Mar 30, 2023
@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

@carocao-msft carocao-msft enabled auto-merge (squash) April 1, 2023 01:15
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2023

@carocao-msft carocao-msft merged commit b887217 into main Apr 1, 2023
@carocao-msft carocao-msft deleted the carocao/controlBar branch April 1, 2023 01:48
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.

5 participants