Skip to content

Commit

Permalink
Fix component size
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Oct 1, 2023
1 parent 4c9b98d commit 7499d65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Sources/OversizeUI/Controls/Avatar/Avatar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public struct Avatar: View {
return .subheadline
case .regular:
return .title3
case .large, .extraLarge:
case .large:
return .largeTitle
@unknown default:
return .title2
Expand All @@ -177,7 +177,7 @@ public struct Avatar: View {
return 1
case .regular:
return 2
case .large, .extraLarge:
case .large:
return 2
@unknown default:
return 0
Expand All @@ -195,8 +195,6 @@ public struct Avatar: View {
return Space.xLarge.rawValue
case .large:
return Space.xxxLarge.rawValue
case .extraLarge:
return 128
@unknown default:
return Space.xLarge.rawValue
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/OversizeUI/Controls/Button/Button.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public struct OversizeButtonStyle: ButtonStyle {
return .small
case .regular:
return .small
case .large, .extraLarge:
case .large:
return .medium
@unknown default:
return .zero
Expand All @@ -164,7 +164,7 @@ public struct OversizeButtonStyle: ButtonStyle {
return .xxSmall
case .regular:
return .small
case .large, .extraLarge:
case .large:
return .medium
@unknown default:
return .zero
Expand Down

0 comments on commit 7499d65

Please sign in to comment.