Skip to content

Commit 2931e25

Browse files
committed
[fix] #152 일부 컴포넌트의 썸네일 비율 수정
1 parent 43af441 commit 2931e25

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Projects/DSKit/Sources/Components/PokitLinkPreview.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public struct PokitLinkPreview: View {
4141
if let image = phase.image {
4242
image
4343
.resizable()
44+
.aspectRatio(contentMode: .fill)
4445
} else {
4546
PokitSpinner()
4647
.foregroundStyle(.pokit(.icon(.brand)))
@@ -56,6 +57,7 @@ public struct PokitLinkPreview: View {
5657
Spacer()
5758
}
5859
.clipShape(RoundedRectangle(cornerRadius: 12, style: .continuous))
60+
.clipped()
5961
.background {
6062
RoundedRectangle(cornerRadius: 12, style: .continuous)
6163
.fill(.pokit(.bg(.base)))

Projects/Feature/FeatureRemind/Sources/Remind/RemindView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ extension RemindView {
193193
}
194194
.frame(width: 216, height: 194)
195195
.clipShape(RoundedRectangle(cornerRadius: 12, style: .continuous))
196+
.clipped()
196197
}
197198

198199
@MainActor
@@ -201,6 +202,7 @@ extension RemindView {
201202
if let image = phase.image {
202203
image
203204
.resizable()
205+
.aspectRatio(contentMode: .fill)
204206
} else if phase.error != nil {
205207
imagePlaceholder
206208
.task { await send(.리마인드_항목_이미지오류_나타났을때(contentId: contentId)).finish() }

0 commit comments

Comments
 (0)