Skip to content

Commit

Permalink
divide .frame modifier maxWidth & height.
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiyasac committed Aug 29, 2024
1 parent 0e839fe commit 1bf4d69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app-ios/Sources/TimetableFeature/TimetableGridCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public struct TimetableGridCard: View {
}
.frame(maxWidth: .infinity)
.padding(12)
.frame(width: 192 * CGFloat(cellCount) + CGFloat(12 * (cellCount - 1)), height: 153)
.frame(maxWidth: 192 * CGFloat(cellCount) + CGFloat(12 * (cellCount - 1)))
.frame(height: 153)
.background(cellCount > 1 ? AssetColors.Surface.surfaceContainer.swiftUIColor : timetableItem.room.roomTheme.containerColor, in: RoundedRectangle(cornerRadius: 4))
.overlay(RoundedRectangle(cornerRadius: 4).stroke(cellCount > 1 ? AssetColors.Surface.onSurface.swiftUIColor : timetableItem.room.roomTheme.primaryColor, lineWidth: 1))
}
Expand Down

0 comments on commit 1bf4d69

Please sign in to comment.