Created attachment 152648 [details] Captions in the Properties panel SUMMARY This is a visual/usability issue. When adding a long caption to a picture, that caption is not fully displayed in the Properties tab, which only shows the start of the first line. Hovering the mouse over it shows the full caption as a popup, but the panel has more than enough empty space to display the full caption. This could be one of the possible improvements for the Properties menu that were proposed in bug 377857 STEPS TO REPRODUCE 1. Add a relatively long caption to a picture (e.g. 30 words). 2. Switch to the Properties panel. OBSERVED RESULT See how only the first words of the caption are shown there. EXPECTED RESULT The full caption could be shown if there's room for it. SOFTWARE/OS VERSIONS digiKam-7.9.0-20220924T122331-x86-64.appimage in Kubuntu 22.04 LTS
This problem is fixed in 8.0.0 https://i.imgur.com/2SB3nch.png Gilles Caulier
Hi Gilles, I don't see a difference in v8.0.0. I just tried it, and only the last few words of each paragraph are shown on the Properties tab. This is also visible in the screenshot you just posted.
Resize the properties tab and all 100 first words will be displayed... If you want all the rest, go to Captions tab.. Gilles
Mmm, that is not my experience. For instance, I have a photo with this caption (53 words): "During circle time, our inventors engaged with some sensory books. Each page has a different texture of fabrics for them to explore with their senses. They enjoyed touching the soft smooth fur and the rough glittery pages. Our inventors engaged with their fine motor skills by practicing flipping, opening, and closing the pages." But in the Properties panel, I can only read "...flipping, opening, and closing the pages." I'm using the 8.1.0 preview build date 22/4/23
The "..." before the text is the squezzed text label used to display long strings. It used everywhere on the right side of the properties tab to display contents. Here i played with the new OCR tool which host long string in caption. The description is cut voluntary at 100 characters, but i can see the complete string if tab as the right width. Your string as paragraph separated by endl ? Gilles
> Your string as paragraph separated by endl ? I think in this case it's a single paragraph. >The "..." before the text is the squezzed text label used to display long strings. It used everywhere on the right side of the properties tab to display contents. Couldn't we automatically fit the text, and limit it to the first X lines (or whatever amount of words fit according to the panel width and font size)?
yes, we have this code of code used in the icon view item tool tip. How is rendered this kind of string in the tool tip ? Gilles
Like this : https://i.imgur.com/bcfAr6U.png
Git commit 9dccaf0468748562f44ed7837c2222b5135d4d79 by Gilles Caulier. Committed on 05/05/2023 at 22:06. Pushed by cgilles into branch 'master'. use QLabel to display caption, not DAdjustableLabel M +59 -50 core/libs/properties/itempropertiestab.cpp https://invent.kde.org/graphics/digikam/commit/9dccaf0468748562f44ed7837c2222b5135d4d79
Git commit d010c9e522a873a9863cc7c144515c73431d2d9b by Gilles Caulier. Committed on 07/05/2023 at 16:33. Pushed by cgilles into branch 'master'. Add Title x-default value in the image properties tab Related: bug 377857 M +15 -1 core/libs/properties/itempropertiessidebar.cpp M +1 -0 core/libs/properties/itempropertiessidebardb.cpp M +75 -58 core/libs/properties/itempropertiestab.cpp M +1 -0 core/libs/properties/itempropertiestab.h https://invent.kde.org/graphics/digikam/commit/d010c9e522a873a9863cc7c144515c73431d2d9b