From a185c3abe92f0e12d86f8ea661dce529f0c29f8a Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Fri, 10 Feb 2023 23:27:33 +0100 Subject: [PATCH] Improve word wrapping 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. --- pages/item/_id/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/item/_id/index.vue b/pages/item/_id/index.vue index b165d51e..9699d1c8 100644 --- a/pages/item/_id/index.vue +++ b/pages/item/_id/index.vue @@ -127,7 +127,7 @@
-

{{ description }}

+

{{ description }}