Skip to content

Commit

Permalink
Fixed too large images on tablets
Browse files Browse the repository at this point in the history
  • Loading branch information
spacecowboy committed Jun 6, 2024
1 parent 0277df6 commit 4c09edb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ fun ReaderView(
modifier =
Modifier
.clip(RectangleShape)
.fillMaxWidth(),
.width(dimens.maxReaderWidth),
) {
WithTooltipIfNotBlank(tooltip = stringResource(id = R.string.article_image)) {
val maxImageWidth by rememberMaxImageWidth()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,6 @@ fun LinearImageContent(
Modifier
.widthIn(max = maxWidth)
.fillMaxWidth(),
// .run {
// // This looks awful for small images
// dimens.imageAspectRatioInReader?.let { ratio ->
// aspectRatio(ratio)
// } ?: this
// },
)
}
}
Expand Down

0 comments on commit 4c09edb

Please sign in to comment.