Thread Locked This thread is locked - replies are not allowed.


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 6 - Pages: 1 - Last Post: 30 Jul 23, 14:03 Last Post By: Laza
phil44

Posts: 190
Registered: 18-Jun-2010
Folder thumbnail label insensitive to mouse clicks
Posted: 27 Jul 23, 21:30
 
Hi,

If I click on a folder thumbnail, it opens that folder, nice ;-) But if I click on the folder label (the part in red in the attached capture), nothing happens.

That does not matter if the label is located below the thumbnail, but is annoying when the label is located over the thumbnail. This is particularly true if the thumbnail is small and the label is a bit long: the clickable part is very small! :-(

This is the same problem for the images count.

Is it possible to fix that ?

Edited by: phil44 on 27 Jul 2023, 22:27. reason: add image count stuff
Laza

Posts: 1,510
Registered: 6-Sep-2005
Re: Folder thumbnail label insensitive to mouse clicks
Posted: 28 Jul 23, 07:34   in response to: phil44 in response to: phil44
 
The folder title could be made linkable, but the comment itself is regarded as HTML formatted, and an HTML structure cannot be linked. Or at least not any HTML content can be linked.

If you'd like the title to be linked use this Folder title caption:
<h3><a href="${closeupPath}">${title}</a></h3>
<div class="comment">${commentShort}</div>


This code in the Settings / Tiger / Advanced / CSS box makes the text color "normal" - not like a link.
.folders .cont.caption-over .card .caption > h3 a { color: ${lighterText}; }


I'll probably add this option to the skin for the next release.

I don't know how to make the counts into a link.
JeffTucker

Posts: 8,334
Registered: 31-Jan-2006
Re: Folder thumbnail label insensitive to mouse clicks
Posted: 28 Jul 23, 13:50   in response to: phil44 in response to: phil44
 
If I click on a folder thumbnail, it opens that folder, nice ;-) But if I click on the folder label (the part in red in the attached capture), nothing happens.

That does not matter if the label is located below the thumbnail, but is annoying when the label is located over the thumbnail. This is particularly true if the thumbnail is small and the label is a bit long: the clickable part is very small! :-(

This is the same problem for the images count.

Is it possible to fix that ?


I'm guessing this is what you'd like to see:

(demo album removed)

Laza, I'm unclear about why this is a problem. Very simple HTML, and all perfectly valid.

Edited by: JeffTucker on 30 Jul 2023, 08:03 - removed demo album link
phil44

Posts: 190
Registered: 18-Jun-2010
Re: Folder thumbnail label insensitive to mouse clicks
Posted: 28 Jul 23, 18:04   in response to: Laza in response to: Laza
 
Your workaround works as I expected for the title.
It would be nice if you can add this for the next release.
Thanks Laza

And Jeff, you guessed perfectly well :-)
Laza

Posts: 1,510
Registered: 6-Sep-2005
Re: Folder thumbnail label insensitive to mouse clicks
Posted: 29 Jul 23, 08:30   in response to: JeffTucker in response to: JeffTucker
 
As far as I know, embedding a link into a link is not valid. And comments often contain links.
JeffTucker

Posts: 8,334
Registered: 31-Jan-2006
Re: Folder thumbnail label insensitive to mouse clicks
Posted: 29 Jul 23, 09:52   in response to: Laza in response to: Laza
 
Laza wrote:
As far as I know, embedding a link into a link is not valid. And comments often contain links.

True, but titles might also contain links.

I strip out the links if the thumbnail caption is being shown as an overlay (in short, I treat them like tooltips, which also can't contain links). The links are preserved if the caption is being shown below the thumbnail - in that case, the caption isn't a link to the folder, anyway. They're preserved when the title/comment are shown in the title bar of the index page for the folder, which is where they're much more useful.
Laza

Posts: 1,510
Registered: 6-Sep-2005
Re: Folder thumbnail label insensitive to mouse clicks
Posted: 29 Jul 23, 10:31   in response to: JeffTucker in response to: JeffTucker
 
Yes, that's another approach. Perhaps better. But Tiger has already enabled links in the overlaid captions too, so I don't want to break this functionality.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums