Skip to content

Commit

Permalink
fix all base64 inconsistent framing
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed Jan 3, 2024
1 parent f4ca968 commit df4dbfd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Nudge/UI/Common/CompanyLogo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct CompanyLogo: View {
.resizable()
.aspectRatio(contentMode: .fit)
.scaledToFit()
.frame(width: logoWidth, height: logoHeight)
)
} else {
Image(systemName: "applelogo")
Expand Down
4 changes: 2 additions & 2 deletions Nudge/UI/StandardMode/RightSide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ struct StandardModeRightSide: View {
} label: {
Image(nsImage: Utils().createImageBase64(base64String: screenShotPath))
.resizable()
.aspectRatio(contentMode: .fit)
.scaledToFit()
.frame(width: logoWidth, height: logoHeight)
.aspectRatio(contentMode: .fit)
.frame(maxHeight: screenshotMaxHeight)
}
.buttonStyle(.plain)
.help(screenShotAltText.localized(desiredLanguage: getDesiredLanguage(locale: appState.locale)))
Expand Down
2 changes: 1 addition & 1 deletion Nudge/UI/StandardMode/ScreenShotZoom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ struct ScreenShotZoom: View {
if screenShotPath.starts(with: "data:") {
Image(nsImage: Utils().createImageBase64(base64String: screenShotPath))
.resizable()
.aspectRatio(contentMode: .fit)
.scaledToFit()
.aspectRatio(contentMode: .fit)
.frame(maxHeight: 675)
} else {
if FileManager.default.fileExists(atPath: screenShotPath) {
Expand Down

0 comments on commit df4dbfd

Please sign in to comment.