Skip to content

Commit

Permalink
Auto merge of #3370 - Turbo87:follow-button, r=locks
Browse files Browse the repository at this point in the history
FollowButton: Avoid size changes

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.
  • Loading branch information
bors committed Mar 9, 2021
2 parents 0e93f7d + cdd5721 commit 615db8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/follow-button.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.button {
composes: tan-button from '../styles/shared/buttons.module.css';

height: 48px;
width: 150px;
justify-content: center;
}

0 comments on commit 615db8a

Please sign in to comment.