thoth-pub / thoth

Metadata management and dissemination system for Open Access books
https://thoth.pub
Apache License 2.0
44 stars 8 forks source link

Fix overlapping URL text in Landing Page and Full Text URL in Locations fields #575

Closed brendan-oconnell closed 4 months ago

brendan-oconnell commented 4 months ago

Addresses https://github.com/thoth-pub/thoth/issues/571 by adding word-wrap: break-word; as inline CSS to Landing Page and Full Text URL fields so that URL text wraps instead of overlapping. This fixes a display issue only present in Safari and Chromium Browsers, and also slightly changes display behavior in Firefox. Before, URLs in Firefox would only break at special characters, e.g. ? or /; now, they break whenever they reach the bounds of the div, on any character.

Before in Firefox:

image

After in Firefox:

image

This arguably makes the URLs slightly less readable, but prevents them from overflowing the div and potentially overlapping other URLs or text in the Locations section.