From 98de3a298420592f0cad6359299e08289e10176e Mon Sep 17 00:00:00 2001 From: sk Date: Sat, 21 May 2022 17:27:31 +0200 Subject: [PATCH 1/4] don't crop image when composing alt text --- .../res/layout/fragment_image_description.xml | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/mastodon/src/main/res/layout/fragment_image_description.xml b/mastodon/src/main/res/layout/fragment_image_description.xml index ac0f5deb9..51dfab3db 100644 --- a/mastodon/src/main/res/layout/fragment_image_description.xml +++ b/mastodon/src/main/res/layout/fragment_image_description.xml @@ -9,20 +9,14 @@ android:layout_height="wrap_content" android:orientation="vertical"> - - - - - + android:scaleType="fitXY" + android:adjustViewBounds="true" + android:importantForAccessibility="no" + tools:src="#0f0" /> Date: Sat, 21 May 2022 17:39:28 +0200 Subject: [PATCH 2/4] obey image max width --- .../res/layout/fragment_image_description.xml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/mastodon/src/main/res/layout/fragment_image_description.xml b/mastodon/src/main/res/layout/fragment_image_description.xml index 51dfab3db..b69d0e055 100644 --- a/mastodon/src/main/res/layout/fragment_image_description.xml +++ b/mastodon/src/main/res/layout/fragment_image_description.xml @@ -9,14 +9,21 @@ android:layout_height="wrap_content" android:orientation="vertical"> - + android:layout_gravity="center" + android:maxWidth="400dp"> + + + + Date: Sat, 21 May 2022 17:42:40 +0200 Subject: [PATCH 3/4] minor code style change for grishka's code style must prevail --- mastodon/src/main/res/layout/fragment_image_description.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/res/layout/fragment_image_description.xml b/mastodon/src/main/res/layout/fragment_image_description.xml index b69d0e055..78eaee4d8 100644 --- a/mastodon/src/main/res/layout/fragment_image_description.xml +++ b/mastodon/src/main/res/layout/fragment_image_description.xml @@ -21,7 +21,7 @@ android:layout_height="match_parent" android:adjustViewBounds="true" android:importantForAccessibility="no" - tools:src="#0f0" /> + tools:src="#0f0"/> From 9638cf079f432435c70d244450d6838af32f1131 Mon Sep 17 00:00:00 2001 From: sk Date: Sat, 21 May 2022 17:48:53 +0200 Subject: [PATCH 4/4] set image view height to wrap_content --- mastodon/src/main/res/layout/fragment_image_description.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/res/layout/fragment_image_description.xml b/mastodon/src/main/res/layout/fragment_image_description.xml index 78eaee4d8..a1d2b0464 100644 --- a/mastodon/src/main/res/layout/fragment_image_description.xml +++ b/mastodon/src/main/res/layout/fragment_image_description.xml @@ -18,7 +18,7 @@