Skip to content

Preview photo-roll icons shift right when the details sidebar opens #3839

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Preview's photo roll shifts file-type icons to the right when the details sidebar narrows the available space. Thumbnail images stay centered. This affects files without thumbnails, including SVGs and audio files.

Reproduction Steps

  1. Open a folder containing a PNG, an SVG and an audio file in Preview.
  2. Keep the photo roll visible and use a desktop viewport, e.g. 1280×1000.
  3. Open the details sidebar.
  4. Compare the SVG/audio icons with the thumbnail and the filenames below them.

Reproduced on fb5c58f5de, using Chromium and backend rolling 8.1.0+40095460.

Expected Outcome

Both thumbnails and fallback resource icons remain horizontally centered in their photo-roll items as the available width changes.

Actual Outcome

At 1280px with the sidebar open, SVG/audio icons sit about 43px right of center. Their placeholder remains about 178px wide despite the smaller available width. PNG thumbnails remain centered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions