thorium-reader icon indicating copy to clipboard operation
thorium-reader copied to clipboard

OPDS navigation trail is prematurily condensed / shortened

Open danielweck opened this issue 1 year ago • 3 comments

Screenshot 2024-05-20 at 11 02 09

click on current category / philosophy ...

Screenshot 2024-05-20 at 11 02 19

danielweck avatar May 20 '24 10:05 danielweck

As you can see, there is plenty of free space in the navigation trail, so I guess there is a hard-coded limit?

danielweck avatar May 20 '24 10:05 danielweck

Yes, it's five elements : https://github.com/edrlab/thorium-reader/blob/develop/src/renderer/library/components/layout/BreadCrumb.tsx#L51

arthur-lemeur avatar May 20 '24 13:05 arthur-lemeur

given that each segment has a max width with text ellipsis overflow, would it be easy to approximate how many segments fit inside the available width? there is plenty of screen real estate wasted with the current heuristics, it would be nice to show more than 5 segments.

danielweck avatar May 20 '24 13:05 danielweck

Fixed by https://github.com/edrlab/thorium-reader/commit/c7b68af85bc1372e3ebc505266824206ff9a00ca

panaC avatar Jun 13 '24 07:06 panaC