라이브방 - 메뉴판 위치

- 메뉴판 버튼 에서 벗어나던 버그 수정
This commit is contained in:
Yu Sung 2024-10-30 14:19:02 +09:00
parent 4d2bb35808
commit c530caa92b
1 changed files with 6 additions and 6 deletions

View File

@ -334,8 +334,8 @@ struct LiveRoomViewV2: View {
if viewModel.isShowMenuPan {
VStack(alignment: .leading, spacing: 0) {
Image("ic_notice_triangle")
.padding(.leading, 60)
ScrollView(.vertical, showsIndicators: false) {
ScrollView(.vertical) {
VStack(alignment: .leading, spacing: 8) {
Text("[메뉴판]")
.font(.custom(Font.bold.rawValue, size: 11.3))
@ -349,16 +349,16 @@ struct LiveRoomViewV2: View {
.background(GeometryReader { geometry in
Color.clear.preference(key: TextViewHeightKey.self, value: geometry.size.height)
})
}
.padding(8)
}
.background(Color.gray33)
.padding(.horizontal, 60)
.frame(maxWidth: 350)
.frame(height: menuTextHeight > 500 ? 500 : menuTextHeight, alignment: .topLeading)
.frame(height: menuTextHeight > 500 ? 500 : menuTextHeight)
.onPreferenceChange(TextViewHeightKey.self) { value in
menuTextHeight = value + 15
}
}
.frame(maxWidth: 350, alignment: .leading)
.padding(.leading, 60)
}
}
}