라이브방 - 메뉴판 위치

- 메뉴판 버튼 에서 벗어나던 버그 수정
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 { if viewModel.isShowMenuPan {
VStack(alignment: .leading, spacing: 0) { VStack(alignment: .leading, spacing: 0) {
Image("ic_notice_triangle") Image("ic_notice_triangle")
.padding(.leading, 60)
ScrollView(.vertical, showsIndicators: false) { ScrollView(.vertical) {
VStack(alignment: .leading, spacing: 8) { VStack(alignment: .leading, spacing: 8) {
Text("[메뉴판]") Text("[메뉴판]")
.font(.custom(Font.bold.rawValue, size: 11.3)) .font(.custom(Font.bold.rawValue, size: 11.3))
@ -349,16 +349,16 @@ struct LiveRoomViewV2: View {
.background(GeometryReader { geometry in .background(GeometryReader { geometry in
Color.clear.preference(key: TextViewHeightKey.self, value: geometry.size.height) Color.clear.preference(key: TextViewHeightKey.self, value: geometry.size.height)
}) })
}
.padding(8) .padding(8)
}
.background(Color.gray33) .background(Color.gray33)
.padding(.horizontal, 60) .frame(height: menuTextHeight > 500 ? 500 : menuTextHeight)
.frame(maxWidth: 350)
.frame(height: menuTextHeight > 500 ? 500 : menuTextHeight, alignment: .topLeading)
.onPreferenceChange(TextViewHeightKey.self) { value in .onPreferenceChange(TextViewHeightKey.self) { value in
menuTextHeight = value + 15 menuTextHeight = value + 15
} }
} }
.frame(maxWidth: 350, alignment: .leading)
.padding(.leading, 60)
} }
} }
} }