Skip to content

Consolidate images and improve loading#14196

Merged
dylanjeffers merged 3 commits intomainfrom
update-images
May 4, 2026
Merged

Consolidate images and improve loading#14196
dylanjeffers merged 3 commits intomainfrom
update-images

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

No description provided.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 29, 2026

⚠️ No Changeset found

Latest commit: 238047f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dylanjeffers dylanjeffers merged commit 44fdb19 into main May 4, 2026
4 checks passed
@dylanjeffers dylanjeffers deleted the update-images branch May 4, 2026 23:11
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

🌐 Web preview ready

Preview URL: https://audius-web-preview-pr-14196.audius.workers.dev

Unique preview for this PR (deployed from this branch).
Workflow run

dylanjeffers added a commit that referenced this pull request May 6, 2026
## Summary

The cover photo banner on profiles (and the track page, which uses the
same `CoverPhoto` component) was clipped on the right edge — the image
only filled part of the 376px-tall banner area instead of the full page
width.

The image-consolidation refactor in #14196 replaced the legacy
`DynamicImage` with a single `<div>` and added an inline `position:
'relative'` to give the blur overlay a positioning context. That inline
rule overrode the `.photo` CSS class's `position: absolute`, which
silently changed the layout: with `position: absolute`, the photo div
was taken out of the parent `.coverPhoto`'s flex layout and sized to
fill it. With `position: relative`, the photo became a flex sibling of
the `.button` div (also `width: 100%`), so the two flex items competed
for space and the banner shrank below full width.

Removing the inline `position: 'relative'` lets the CSS class's
`position: absolute` take effect again. The blur overlay's `position:
absolute; inset: 0` still anchors correctly because `position: absolute`
is itself a containing block for descendants.

This was missed during the #14234 image-loading fix follow-up; this PR
addresses it.

## Test plan

- [ ] Visit a profile with a cover photo set on desktop — banner image
fills the full viewport width
- [ ] Visit a track page on desktop — same
- [ ] Visit a profile with no cover photo (fallback to blurred profile
picture) — banner still spans the full width and the blur overlay sits
flush over the image
- [ ] Edit-mode profile (own profile) — the cover photo edit button
still appears in the top-right of the banner

---
_Generated by [Claude
Code](https://claude.ai/code/session_013L5gBvHwVjzABPTBKPJL2T)_

Co-authored-by: Claude <noreply@anthropic.com>
raymondjacobson added a commit that referenced this pull request May 8, 2026
## Summary
- The harmony `Image` migration in #14196 swapped `ProfileInfo`'s plain
`<img>` for `<Image>`, which wraps the avatar in a `Box` that respects
`h`/`w` props (78px).
- The OAuth login page's `.profileImg` only overrode `height: 48px`,
leaving the wrapper at 78px wide and rendering a 78×48 pill shape
instead of a circle.
- Fix: also constrain `width: 48px` so the wrapper is square and the
existing `border-radius` produces a perfect circle.

## Test plan
- [ ] Open the OAuth consent popup (e.g. via a third-party Connect
Audius flow) — the signed-in user's avatar should render as a perfect
circle.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant