Skip to content

Commit

Permalink
Open in browser button is partially hidden in landscape mode (openedx…
Browse files Browse the repository at this point in the history
…#216)

* fix: added scroll if screen size is not enough

* style: hide scroll indicators
  • Loading branch information
rnr authored Dec 27, 2023
1 parent f17aa5b commit d857e3b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Course/Course/Presentation/Unit/CourseUnitView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ public struct CourseUnitView: View {
case .unknown(let url):
if index >= viewModel.index - 1 && index <= viewModel.index + 1 {
if viewModel.connectivity.isInternetAvaliable {
UnknownView(url: url, viewModel: viewModel)
Spacer()
ScrollView(showsIndicators: false) {
UnknownView(url: url, viewModel: viewModel)
Spacer()
.frame(minHeight: 100)
}
} else {
NoInternetView(playerStateSubject: playerStateSubject)
}
Expand Down

0 comments on commit d857e3b

Please sign in to comment.