Skip to content

Commit aa2dfc6

Browse files
committed
Changed so tablets don't force images to be 16:9 anymore
1 parent 3ec908d commit aa2dfc6

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

app/src/main/java/com/nononsenseapps/feeder/ui/compose/text/HtmlToComposable.kt

+7-9
Original file line numberDiff line numberDiff line change
@@ -864,15 +864,13 @@ private fun ColumnScope.renderImage(
864864
modifier =
865865
modifier
866866
.widthIn(max = maxWidth)
867-
.fillMaxWidth()
868-
.run {
869-
// TODO take the real height into account
870-
// OR aspect ratio is no longer needed now that real size
871-
// is respected?
872-
dimens.imageAspectRatioInReader?.let { ratio ->
873-
aspectRatio(ratio)
874-
} ?: this
875-
},
867+
.fillMaxWidth(),
868+
// .run {
869+
// // This looks awful for small images
870+
// dimens.imageAspectRatioInReader?.let { ratio ->
871+
// aspectRatio(ratio)
872+
// } ?: this
873+
// },
876874
)
877875
}
878876
}

0 commit comments

Comments
 (0)