This patch allows user to not only add a chapter track but also remove
the total track. This means that you can have only the total track or
only the chapter track.
This patch does not allow user to have no track at all. Disabling one
track will automatically enable the other one, if that one is already
disabled.
The reasoning behind this is that for long-ish audio books, users will
not very often look at the overall progress. In fact, I find the
progress bar mostly useful only for quickly seeking to a position when
jumping back a few seconds is not sufficient.
In the seldom occasion that I want the overall progress, I can easily
get it from the book details page.
Instead of handling some items of the player menu as special cases,
adding icons and colors, this patch allows menu items to have icons in
general, allowing for the removal of the special cases.
This also makes it easy to actually use a homogeneous style for all of
the player menu items, letting them all have an icon and aligning them
visually.
This patch updates the metadata table in the book details view, turning
it into a CSS grid layout. This fixes a few issues with the current
layout:
- Keys and values are not vertically aligned with the value being
displayed a little bit above the baseline of the key.
- There is no horizontal alignment of the table columns. In fact, it is
technically not a table despite the CSS being tuned to almost look
like one. Just turning this into a real grid looks cleaner.
- The code for making multi-line values not wrap is broken. This fixes
the problem.
This also renames “Publish Year” to “Published”. Mainly because it is
shorter.
When long chapter names are being used, it may easily happen that parts
of the name is cut off. If this part identifies the latest chapter name
or number, it may make chapters indistinguishable from one another. This
makes it near imposible to select a specific chapter if the book has
many chapters.
This patch addresses the issue by starting each item in the list of
chapters with an index number.
This fixes#479