Modernize gallery, consolidate thumbnail sizes#1090
Merged
DavidMStraub merged 2 commits intogramps-project:mainfrom Apr 14, 2026
Merged
Modernize gallery, consolidate thumbnail sizes#1090DavidMStraub merged 2 commits intogramps-project:mainfrom
DavidMStraub merged 2 commits intogramps-project:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
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/jsicons. - Adds a new
covermode to<grampsjs-img>to support “fill tile” thumbnails viaobject-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.
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.