fix(main): 랭킹 배지 크기를 조정한다

This commit is contained in:
Yu Sung
2026-07-09 16:40:34 +09:00
parent 0d9a4880ef
commit 5213f0d98d
5 changed files with 9 additions and 9 deletions

View File

@@ -114,7 +114,7 @@ struct MainContentAudioRankingThumbnailCard: View {
} }
private func creatorFontSize(_ side: CGFloat) -> CGFloat { private func creatorFontSize(_ side: CGFloat) -> CGFloat {
max(12, side * 0.07) max(14, side * 0.093)
} }
private func rankColumnWidth(_ side: CGFloat) -> CGFloat { private func rankColumnWidth(_ side: CGFloat) -> CGFloat {

View File

@@ -51,7 +51,7 @@ struct MainContentAudioRankingTopCard: View {
.truncationMode(.tail) .truncationMode(.tail)
Text(item.creatorNickname) Text(item.creatorNickname)
.appFont(.caption1) .appFont(size: 16, weight: .regular)
.foregroundColor(.white) .foregroundColor(.white)
.lineLimit(1) .lineLimit(1)
.truncationMode(.tail) .truncationMode(.tail)

View File

@@ -10,8 +10,7 @@ struct MainContentRankChangeBadge: View {
if isNew { if isNew {
Image("ic_rank_new") Image("ic_rank_new")
.resizable() .resizable()
.scaledToFit() .frame(width: 28, height: 18)
.frame(width: 28, height: 12)
} else if let rankChange { } else if let rankChange {
HStack(spacing: 2) { HStack(spacing: 2) {
switch rankChange { switch rankChange {
@@ -26,6 +25,7 @@ struct MainContentRankChangeBadge: View {
} }
} }
.padding(.horizontal, 4) .padding(.horizontal, 4)
.padding(.vertical, 3)
.background(Color.gray900) .background(Color.gray900)
.cornerRadius(4) .cornerRadius(4)
} }
@@ -43,6 +43,6 @@ struct MainContentRankChangeBadge: View {
Image(name) Image(name)
.resizable() .resizable()
.scaledToFit() .scaledToFit()
.frame(width: 8, height: 8) .frame(width: 14, height: 14)
} }
} }

View File

@@ -10,8 +10,7 @@ struct MainHomeRankChangeBadge: View {
if isNew { if isNew {
Image("ic_rank_new") Image("ic_rank_new")
.resizable() .resizable()
.scaledToFit() .frame(width: 28, height: 18)
.frame(width: 28, height: 12)
} else if let rankChange { } else if let rankChange {
HStack(spacing: 2) { HStack(spacing: 2) {
switch rankChange { switch rankChange {
@@ -26,6 +25,7 @@ struct MainHomeRankChangeBadge: View {
} }
} }
.padding(.horizontal, 4) .padding(.horizontal, 4)
.padding(.vertical, 3)
.background(Color.gray900) .background(Color.gray900)
.cornerRadius(4) .cornerRadius(4)
} }
@@ -43,7 +43,7 @@ struct MainHomeRankChangeBadge: View {
Image(name) Image(name)
.resizable() .resizable()
.scaledToFit() .scaledToFit()
.frame(width: 8, height: 8) .frame(width: 14, height: 14)
} }
} }

View File

@@ -109,7 +109,7 @@ struct MainHomeRankingCard: View {
} }
private func nicknameFontSize(_ side: CGFloat) -> CGFloat { private func nicknameFontSize(_ side: CGFloat) -> CGFloat {
max(16, side * 0.085) max(14, side * 0.085)
} }
private func rankColumnWidth(_ side: CGFloat) -> CGFloat { private func rankColumnWidth(_ side: CGFloat) -> CGFloat {