Skip to content

Modernize gallery, consolidate thumbnail sizes#1090

Merged
DavidMStraub merged 2 commits intogramps-project:mainfrom
DavidMStraub:gallery_thumb_sizes
Apr 14, 2026
Merged

Modernize gallery, consolidate thumbnail sizes#1090
DavidMStraub merged 2 commits intogramps-project:mainfrom
DavidMStraub:gallery_thumb_sizes

Conversation

@DavidMStraub
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the media gallery UI and standardizes thumbnail sizing across several views/components to reduce visual inconsistency and better align with the updated gallery layout.

Changes:

  • Reworks <grampsjs-gallery> to a CSS grid layout and switches edit controls to Material Web icon buttons + @mdi/js icons.
  • Adds a new cover mode to <grampsjs-img> to support “fill tile” thumbnails via object-fit: cover.
  • Consolidates various thumbnail/image request sizes (e.g., 200 → 100, 70 → 40) across media lists and relationship/tree charts.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/views/GrampsjsViewMediaObjects.js Reduces list thumbnail request size to better match the smaller list-thumb container.
src/util.js Shrinks default rendered icon thumbnail size.
src/components/GrampsjsYtreeLineage.js Reduces person image size requested for the lineage chart.
src/components/GrampsjsTreeChart.js Reduces person image size requested for the tree chart.
src/components/GrampsjsRelationshipChart.js Reduces person image size requested for the relationship chart.
src/components/GrampsjsPlaceBox.js Removes gallery sizing props now that connected gallery/gallery layout is standardized.
src/components/GrampsjsImg.js Introduces cover rendering mode and related styling.
src/components/GrampsjsGallery.js Modernizes gallery layout + edit controls; uses cover thumbnails within tiles.
src/components/GrampsjsConnectionChart.js Reduces person image size requested for the connection chart.
src/components/GrampsjsConnectedGallery.js Updates loading skeleton to match new grid gallery layout; removes sizing props.
src/components/GrampsjsChildren.js Shrinks child avatar thumbnail size.
src/components/GrampsjsBlogPostPreview.js Increases requested thumbnail size for blog preview image.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/GrampsjsGallery.js
Comment thread src/components/GrampsjsGallery.js
Comment thread src/components/GrampsjsImg.js
Comment thread src/components/GrampsjsImg.js
Comment thread src/components/GrampsjsBlogPostPreview.js
Comment thread src/components/GrampsjsGallery.js
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/GrampsjsGallery.js
Comment thread src/components/GrampsjsGallery.js
Comment thread src/components/GrampsjsGallery.js
Comment thread src/components/GrampsjsGallery.js
@DavidMStraub DavidMStraub merged commit f4ccaff into gramps-project:main Apr 14, 2026
5 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.

2 participants