[fix] Fix tablet full-screen mode bug

This commit is contained in:
acite
2025-08-25 14:26:13 +08:00
parent 67d9d7390f
commit 19ae4a34d5
2 changed files with 169 additions and 166 deletions

View File

@@ -22,7 +22,7 @@ _🚀This is the client of the multimedia server Abyss, which can also be extend
## TODO List ## TODO List
### High Priority ### High Priority
- [ ] Fix tablet full-screen mode bug - [x] Fix tablet full-screen mode bug
- [ ] Hide private key after user input - [ ] Hide private key after user input
- [ ] Replace Android robot icon with custom design - [ ] Replace Android robot icon with custom design
- [ ] Configure server baseURL in client settings - [ ] Configure server baseURL in client settings

View File

@@ -716,9 +716,11 @@ fun VideoPlayerLandscape(videoPlayerViewModel: VideoPlayerViewModel)
} }
ToggleFullScreen(true) ToggleFullScreen(true)
Box(Modifier.fillMaxSize())
{
Box( Box(
modifier = Modifier modifier = Modifier
.background(Color.Black) .background(Color.Black).align(Alignment.Center)
) )
{ {
AndroidView( AndroidView(
@@ -907,6 +909,7 @@ fun VideoPlayerLandscape(videoPlayerViewModel: VideoPlayerViewModel)
} }
} }
} }
}
@Composable @Composable
fun MiniVideoCard(modifier: Modifier, video: Video, onClick: () -> Unit) fun MiniVideoCard(modifier: Modifier, video: Video, onClick: () -> Unit)