Skip to content

FollowButton: Avoid size changes #3370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2021
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Mar 7, 2021

Instead of having the button change its size depending on the content we now set a fixed size. This avoids annoying layout shifts when changing from text label to loading spinner and back, for example.

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-frontend 🐹 labels Mar 7, 2021
Instead of having the button change its size depending on the content we now set a fixed size. This avoids annoying layout shifts when changing from text label to loading spinner and back, for example.
@locks
Copy link
Contributor

locks commented Mar 9, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Mar 9, 2021

📌 Commit cdd5721 has been approved by locks

@bors
Copy link
Contributor

bors commented Mar 9, 2021

⌛ Testing commit cdd5721 with merge 615db8a...

@bors
Copy link
Contributor

bors commented Mar 9, 2021

☀️ Test successful - checks-actions
Approved by: locks
Pushing 615db8a to master...

@bors bors merged commit 615db8a into rust-lang:master Mar 9, 2021
@Turbo87 Turbo87 deleted the follow-button branch March 9, 2021 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants