Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3873: feat configure number of thumbnails #3915

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

fstoe
Copy link

@fstoe fstoe commented Jun 11, 2024

Hi,
i created a PR which solves issue 3873

@fstoe fstoe changed the title 3873 3873: feat configure number of thumbnails Jun 11, 2024
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.52%. Comparing base (05194d8) to head (f4a13ec).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3915   +/-   ##
=======================================
  Coverage   94.52%   94.52%           
=======================================
  Files         313      313           
  Lines       14767    14781   +14     
  Branches     2496     2501    +5     
=======================================
+ Hits        13958    13972   +14     
  Misses        804      804           
  Partials        5        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

gerdesque
gerdesque previously approved these changes Dec 19, 2024
@gerdesque gerdesque requested a review from lutzhelm December 19, 2024 15:09
Copy link
Contributor

@lutzhelm lutzhelm left a comment

Choose a reason for hiding this comment

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

The changes look like they work as intended, but I have a strange feeling about the usability. Maybe it would be better to center the thumbnail navigation if there is a limit applied. If there were only five canvases in the manifest, the thumbnails would also align left (or right for RTL). But aligning a component with a scrollbar to the left feels strange.

thumbnailnavigation

I guess I'll try to get some feedback in this weeks community call.

@@ -512,6 +512,8 @@ export default {
preferredFormats: ['jpg', 'png', 'webp', 'tif'],
},
thumbnailNavigation: {
count: 5, // The amount of thumbnails to be shown
limit: false, // Limits the shown thumbnails in the thumbnail navigation
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Couldn't these two settings be reduced to a single setting? Something like, the count setting does only apply if it is >0. I think we should avoid cluttering the settings with too many options. In that case, the setting should be set to 0 as default.
  2. Is there a more precise name than count (or limit, for that matter)? Like maxNumberOfThumbnails, or something preferably shorter?
  3. Alphabetical order would be nice to make eslint happy.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. I made the requested changes. Let me know if i should center the navigation or not :)

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.

3 participants