From a824d1275f8efdd3a775f5828c72cbbb36cc6a7f Mon Sep 17 00:00:00 2001 From: Yannick Chiron Date: Fri, 10 Dec 2021 17:43:09 +0100 Subject: [PATCH] fix: avoid word wrapping for single word settings values When a setting label is single line and its setting value is single line, everything is displayed correctly When a setting label is multi line and its value is single word, then the value may not succeed to require enough space and so it may wrap in the middle of the word and it becomes multi line When a setting label is multi line and its value is multi words, then the value succeed to require enough space to be displayed correctly With `MinimumWidthRequest=100` and `LineBreakMode=WordWrap`, all three previous cases are displayed correctly without excessive wrapping --- src/App/Pages/Settings/SettingsPage/SettingsPage.xaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml b/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml index 133ccbfe0..236f46618 100644 --- a/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml +++ b/src/App/Pages/Settings/SettingsPage/SettingsPage.xaml @@ -1,4 +1,4 @@ - + + StyleClass="list-sub" + MinimumWidthRequest="100" + LineBreakMode="WordWrap" />