You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clicking a detail image opens it at modal default width, so large images can't be seen at full size #13252
Open any part that has a large image (for example, upload a 1200×900 px image to a demo part).
On the part's detail page, click the part image.
Expected: the image opens large enough to read detail, up to the window size.
Actual: the image opens in a modal at Mantine's default md width (about 440 px), so a high-resolution image is shown no larger than the small preview area.
with no size, so the modal takes Mantine's default width.
Suggestion: give the modal a size, e.g. size: 'auto' or size: '90vw', and fit the image inside the viewport (for example maw="100%" mah="85vh" fit="contain" on the image). This matters most for parts whose image is a drawing.
InvenTree 1.5.8, browser window 1440×900. The part image is 1600×1200 px. Clicking it opens the modal at about 440 px wide, so the image is shown at about 25% of its size, no bigger than the preview on the page.
Activity
SchrodingersGat commentedon Nov 12, 2026
@jbc-af can you please post a screenshot example?
jbc-af commentedon Nov 12, 2026
InvenTree 1.5.8, browser window 1440×900. The part image is 1600×1200 px. Clicking it opens the modal at about 440 px wide, so the image is shown at about 25% of its size, no bigger than the preview on the page.


SchrodingersGat commentedon Nov 12, 2026
@jbc-af thanks for the additional context. Would you like to submit a patch for this?
jbc-af commentedon Nov 12, 2026
Yes, happy to submit a PR.
[UI] Size the detail image modal to the viewport (inventree#13264)
[UI] Size the detail image modal to the viewport (#13264) (#13278)