Skip to content

Commit

Permalink
[design] #167 컨텐츠 상세 디자인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Dec 10, 2024
1 parent 6744ed6 commit cc61760
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ public extension ContentDetailView {
VStack(spacing: 0) {
contentMemo

Divider()
Rectangle()
.foregroundStyle(.pokit(.border(.tertiary)))
.frame(height: 1)

bottomList(favorites: favorites)
}
Expand All @@ -56,8 +57,6 @@ public extension ContentDetailView {
PokitLinkPopup(type: $store.linkPopup)
}
}
// .dismissKeyboard(focused: $isFocused)
// .onChange(of: isFocused) { send(.메모포커스_변경되었을때($0)) }
.sheet(isPresented: $store.showAlert) {
PokitAlert(
"링크를 정말 삭제하시겠습니까?",
Expand Down Expand Up @@ -110,15 +109,15 @@ private extension ContentDetailView {
func title(content: BaseContentDetail) -> some View {
VStack(alignment: .leading, spacing: 8) {
Group {
remindAndBadge(content: content)

Text(content.title)
.pokitFont(.title3)
.foregroundStyle(.pokit(.text(.primary)))
.multilineTextAlignment(.leading)
.lineLimit(2)

HStack {
remindAndBadge(content: content)

Spacer()

Text(content.createdAt)
Expand All @@ -128,8 +127,9 @@ private extension ContentDetailView {
}
.padding(.horizontal, 20)

Divider()
Rectangle()
.foregroundStyle(.pokit(.border(.tertiary)))
.frame(height: 1)
.padding(.top, 4)
}
}
Expand Down Expand Up @@ -221,7 +221,8 @@ private extension ContentDetailView {
title: "삭제하기",
type: .bottomSheet(
icon: .icon(.trash),
iconColor: .pokit(.icon(.primary))
iconColor: .pokit(.icon(.primary)),
isLast: true
),
action: { send(.삭제_버튼_눌렀을때) }
)
Expand Down

0 comments on commit cc61760

Please sign in to comment.