Skip to content

Commit

Permalink
fix: set screen width as the maximum
Browse files Browse the repository at this point in the history
  • Loading branch information
uwaisalqadri committed Dec 15, 2024
1 parent 2c2d7ea commit af26477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Giffy/Features/Detail/DetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ struct DetailView: View {
}
.scaledToFill()
.frame(
maxWidth: imageWidth,
maxHeight: imageHeight
width: min(imageWidth, UIScreen.main.bounds.width - 16),
height: imageHeight
)
.clipShape(.rect(cornerRadius: 20))
.showGiphyMenu(
Expand Down

0 comments on commit af26477

Please sign in to comment.