Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
amwpsaa
Experienced
Topic Author
Posts: 53
Joined: 29 Jul 2021, 08:46

Can this picture upset the layout?

13 Nov 2021, 12:11

The 2.0 version is normal,
After updating to 3.0, I found that this picture in my catalog would disrupt the layout.

you see!
sample.zip
(285.25 KiB) Downloaded 292 times


Attachment, two pictures, one of which 200.jpg will disturb the layout.
sample.zip
(285.25 KiB) Downloaded 292 times
Attachments
avv.JPG
avv.JPG (62.28 KiB) Viewed 6984 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Can this picture upset the layout?

14 Nov 2021, 00:40

That's an interesting find, thanks for reporting. It's easy to explain: The list elements in Files app are already <a> anchor links ... When you add your own <a> tags inside IPTC, you end up with nested <a><a></a></a> anchor link tags, which is not allowed in HTML. The browser will therefore compensate by correcting the HTML, but that will of course break the layout.

I'm not quite sure how to deal with this, because Files app items should correctly use <a> tag, and I would like to support HTML in title, but you can't currently include <a> in title as that will break the layout. In next release I will either 1) Strip all html from "title" the layout (but keep for popup), or 2) Replace all <a> tags in title with <span> (but keep for popup).
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Can this picture upset the layout?

12 Feb 2022, 23:44

This issue was resolved in Files 0.4.0 release.

We now replace <a> link tags in image IPTC, so they don't break the <a> tag used by the Files app layout.