Skip to content

Commit

Permalink
Merge pull request #872 from fumiyasac/feature/fix_timeline_grid_margin
Browse files Browse the repository at this point in the history
[iOS] Fix timeline grid unexpected margin.
  • Loading branch information
MrSmart00 authored Aug 30, 2024
2 parents a1eb3ba + 1bf4d69 commit be38af7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion app-ios/Sources/TimetableFeature/TimetableListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ struct TimetableGridView: View {
Text(timeBlock.startsTimeString).foregroundStyle(AssetColors.Surface.onSurface.swiftUIColor).textStyle(.labelMedium)
Spacer()

}.frame(height: 153)
}.frame(width: 40, height: 153)

if (timeBlock.items.count == 1 && timeBlock.isTopLunch()) {

Expand Down

0 comments on commit be38af7

Please sign in to comment.