According to the changelog, version 4.2.0 introduced the Gallery Editor Widget for relationships containing photo, video, and audio attachments.
Since then, related records are displayed in a horizontal gallery whenever photo attachments are supported. While it is possible to switch to a vertical list using the button in the bottom-right corner, this preference is not preserved and has to be changed every time.
In QGIS 3.40.5, I could not find any option to disable the Gallery Editor Widget or make the vertical list the default.
Is there a way to disable this feature or restore the previous list view?
@armin_matzl , ATM, there is no way to disable that view, we are hoping we can come up with a logic that avoids burdening people with additional toggles.
What are your issue(s) with it?
Would remembering the toggle-to-list option be satisfactory to you? That’d be a single-click to switch permanently.
We use our QField project to add information about field measurements at fixed locations. Our main focus is not on pictures, but they are a nice optional feature.
When we visit the sites, the measurement history is what matters most: the date and time of each visit and the recorded values. With the new view, however, the pictures are given priority, and only the last two entries are visible (at least on our devices). Please see the attached screenshots.
It would definitely be an improvement if the toggle-to-list option were remembered.
From my point of view, it would also be nice to have the possibility to enable or disable certain UI features. However, I understand that this would make the app more complex.
Many thanks for your work and for the development of this great app!
@armin_matzl , your screenshot shows some pretty bad text-overlapping-button issue with the thumbnail mode of the gallery editor widget, that’d be worth fixing too.
We’ll make the toggle-to-list option a setting that’s remembered, that feels like it’ll be helpful to you. We could also consider removing the thumbnail area in the list form for items that have no photo/video/audio. Then the list would essentially be the same for you, except for items with a photo included, which I assume would not be bad to highlight in the list for you?
What kind of measurement are you taking here? Let me offer a wild guess: water height and temperature?
@Mathieu_Pellerin Both options sound very good to me.
If I could choose, I think I would prefer the option of removing the thumbnail area for items without attachments. Items with photos would be highlighted, which would definitely not be a downside.
Yes, you are completely right! We maintain and operate hydrological monitoring stations and use QField on a daily basis. For us, it is a great tool for collaboration within the team.
Hi @armin_matzl, thank you so much for the detailed feedback and screenshots, they really helped. We have put together a PR that tries to address your points: the list/card toggle is now remembered, and in list view entries without a photo no longer show an empty thumbnail, so the measurement history reads more clearly while entries with media still stand out. We also fixed the text overlapping the menu button in card view.
If you get a chance, it would be great if you could try the build from the artifacts in this PR and let us know how it feels overall. Thanks again for helping make QField better!
There is still an issue with sorting of the items. The items are supposed to be sorted by date but for some reason they don’t.
By the way, at least for our use case, it would also be helpful if the selected sort order could be remembered.
@armin_matzl , the sorting should match what was set in your project configuration (it’s well exposed in QGIS 4). Could you share your project so we can investigate what is not working there?
@Mathieu_Pellerin I don’t think that this is related to my project configuration. For the same projekt, it works until QField v4.2.0 and it still works for other layers without configured attatchments. The project was last modified with QGis 3.40.5.
Nevertheless, I can share my example project here.
sorry, this was my fault!
I just had a closer look at the changelog of version 4.2.9: “Fix ordering of relation editor’s children list not respecting project configuration”
It worked until this fix - therefore I suppose my configuration is not correct. But I am not quite sure what is wrong since other layers work like expected.