Skip to content

web: keep the team avatar remove button in place when there's no avatar - #47

Merged
yekta merged 1 commit into
masterfrom
fix/avatar-remove-layout-shift
Oct 20, 2026
Merged

yekta merged 1 commit into
masterfrom
fix/avatar-remove-layout-shift

Conversation

@yekta

@yekta yekta commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

The footer row on the Team Avatar card shifted between the "avatar uploaded" and "no avatar" states. This happened because the remove button was unmounted whenever there was no avatar.

  • The remove button now always renders for users who can edit.
  • With no avatar it is disabled, hidden with opacity-0 and marked aria-hidden, so it keeps its space and the layout no longer moves.

The remove button used to be unmounted when no avatar was uploaded, so the footer row shifted between the two states. Now it always renders. When there's no avatar it is disabled, hidden with opacity 0 and marked aria-hidden, so it still takes up its space.
@yekta
yekta merged commit 5f8f29d into master Oct 20, 2026
8 checks passed
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.

1 participant