[PR #572] [MERGED] Improve word wrapping #1456

Closed
opened 2026-04-24 23:58:36 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf-app/pull/572
Author: @lkiesow
Created: 2/10/2023
Status: Merged
Merged: 2/11/2023
Merged by: @advplyr

Base: masterHead: hyphen-auto


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 pages/item/_id/index.vue (+1 -1)

📄 Description

This patch improves word wrapping for the description text in book details by justifying the text block and allowing for words to be wrapped by automatically inserting hyphens if necessary.

This causes the description box to look far less ragged on the right edge which I think helps the overall cleanliness of the look.

Unfortunately the app's/browser's aren't as good as e.g. the TeX algorithm for hyphening and there are JavaScript libraries which seem to reimplement that. But this is already a significant step up and far less work for something which is not the main focus of this app.

Screenshot from 2023-02-10 23-21-09


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf-app/pull/572 **Author:** [@lkiesow](https://github.com/lkiesow) **Created:** 2/10/2023 **Status:** ✅ Merged **Merged:** 2/11/2023 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `hyphen-auto` --- ### 📝 Commits (1) - [`a185c3a`](https://github.com/advplyr/audiobookshelf-app/commit/a185c3abe92f0e12d86f8ea661dce529f0c29f8a) Improve word wrapping ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `pages/item/_id/index.vue` (+1 -1) </details> ### 📄 Description This patch improves word wrapping for the description text in book details by justifying the text block and allowing for words to be wrapped by automatically inserting hyphens if necessary. This causes the description box to look far less ragged on the right edge which I think helps the overall cleanliness of the look. Unfortunately the app's/browser's aren't as good as e.g. the TeX algorithm for hyphening and there are JavaScript libraries which seem to reimplement that. But this is already a significant step up and far less work for something which is not the main focus of this app. ![Screenshot from 2023-02-10 23-21-09](https://user-images.githubusercontent.com/1008395/218214516-d00e4203-8dfc-4516-b14d-0a00384426d0.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-24 23:58:36 +02:00
adam closed this issue 2026-04-24 23:58:37 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#1456