Bug 460134 - Properties tab does not display the full caption of a picture
Summary: Properties tab does not display the full caption of a picture
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Ergonomy (show other bugs)
Version: 7.9.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-08 20:29 UTC by MarcP
Modified: 2023-05-07 16:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.1.0
Sentry Crash Report:


Attachments
Captions in the Properties panel (141.46 KB, image/png)
2022-10-08 20:29 UTC, MarcP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MarcP 2022-10-08 20:29:41 UTC
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
Comment 1 caulier.gilles 2023-05-02 08:25:17 UTC
This problem is fixed in 8.0.0

https://i.imgur.com/2SB3nch.png

Gilles Caulier
Comment 2 MarcP 2023-05-05 15:54:49 UTC
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.
Comment 3 caulier.gilles 2023-05-05 16:08:15 UTC
Resize the properties tab and all 100 first words will be displayed... If you want all the rest, go to Captions tab..

Gilles
Comment 4 MarcP 2023-05-05 16:12:56 UTC
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
Comment 5 caulier.gilles 2023-05-05 17:33:45 UTC
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
Comment 6 MarcP 2023-05-05 17:41:52 UTC
> 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)?
Comment 7 caulier.gilles 2023-05-05 18:01:57 UTC
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
Comment 8 caulier.gilles 2023-05-05 22:00:56 UTC
Like this : https://i.imgur.com/bcfAr6U.png
Comment 9 caulier.gilles 2023-05-05 22:06:54 UTC
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
Comment 10 caulier.gilles 2023-05-07 16:38:41 UTC
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