fix missing images heights on month detail

This commit is contained in:
Trey t
2022-04-23 11:14:10 -05:00
parent 75b8db8c8e
commit d116d082eb
10 changed files with 29 additions and 44 deletions

View File

@@ -167,29 +167,27 @@ struct MonthDetailView: View {
Text(" ")
.font(.title3)
.foregroundColor(Mood.placeholder.color)
Circle()
.frame(minWidth: 5,
maxWidth: 50,
minHeight: 5,
maxHeight: 50,
alignment: .center)
.foregroundColor(moodTint.color(forMood: entry.mood))
} else {
Text(entry.forDate!,
format: Date.FormatStyle().day())
.font(.title3)
.foregroundColor(textColor)
}
if entry.mood == .placeholder {
Circle()
.frame(minWidth: 5,
maxWidth: 500,
minHeight: 5,
maxHeight: 500,
alignment: .center)
.foregroundColor(moodTint.color(forMood: entry.mood))
} else {
entry.mood.icon
.resizable()
.aspectRatio(contentMode: .fit)
.scaledToFit()
.frame(minWidth: 5,
maxWidth: 500,
maxWidth: 50,
minHeight: 5,
maxHeight: 500,
maxHeight: 50,
alignment: .center)
.foregroundColor(moodTint.color(forMood: entry.mood))
}