Skip to content

Commit cdd5721

Browse files
committed
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.
1 parent a92c743 commit cdd5721

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.button {
22
composes: tan-button from '../styles/shared/buttons.module.css';
3+
4+
height: 48px;
5+
width: 150px;
6+
justify-content: center;
37
}

0 commit comments

Comments
 (0)