feat(home): 팔로잉 전체 버튼을 고정한다
This commit is contained in:
@@ -16,34 +16,34 @@ struct MainHomeFollowingCreatorSection: View {
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
ScrollView(.horizontal, showsIndicators: false) {
|
||||
LazyHStack(alignment: .top, spacing: SodaSpacing.s12) {
|
||||
ForEach(followingCreators) { creator in
|
||||
CreatorProfileItem(
|
||||
imageUrl: creator.creatorProfileImageUrl,
|
||||
name: creator.creatorNickname,
|
||||
imageSize: CGSize(width: 72, height: 72),
|
||||
spacing: SodaSpacing.s8
|
||||
) {
|
||||
onTapCreator(creator.creatorId)
|
||||
HStack(alignment: .top, spacing: SodaSpacing.s12) {
|
||||
ScrollView(.horizontal, showsIndicators: false) {
|
||||
LazyHStack(alignment: .top, spacing: SodaSpacing.s12) {
|
||||
ForEach(followingCreators) { creator in
|
||||
CreatorProfileItem(
|
||||
imageUrl: creator.creatorProfileImageUrl,
|
||||
name: creator.creatorNickname,
|
||||
imageSize: CGSize(width: 72, height: 72),
|
||||
spacing: SodaSpacing.s8
|
||||
) {
|
||||
onTapCreator(creator.creatorId)
|
||||
}
|
||||
.frame(width: 72)
|
||||
}
|
||||
.frame(width: 72)
|
||||
}
|
||||
|
||||
Button(action: onTapAll) {
|
||||
Text(I18n.HomeFollowing.allButtonTitle)
|
||||
.appFont(.body4)
|
||||
.foregroundColor(Color.soda400)
|
||||
.padding(.horizontal, 16)
|
||||
.frame(height: allButtonHeight)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.padding(.leading, SodaSpacing.s20)
|
||||
}
|
||||
.padding(.horizontal, SodaSpacing.s20)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
Button(action: onTapAll) {
|
||||
Text(I18n.HomeFollowing.allButtonTitle)
|
||||
.appFont(.body5)
|
||||
.foregroundColor(Color.soda400)
|
||||
.frame(width: 70, height: 102, alignment: .center)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
}
|
||||
}
|
||||
|
||||
private var allButtonHeight: CGFloat { 72 + SodaSpacing.s8 + 20 }
|
||||
}
|
||||
|
||||
struct MainHomeFollowingCreatorSection_Previews: PreviewProvider {
|
||||
|
||||
Reference in New Issue
Block a user