Skip to content

Commit

Permalink
desktop only
Browse files Browse the repository at this point in the history
  • Loading branch information
NieR4ever committed Nov 4, 2024
1 parent c07d521 commit 0ea045c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ import me.him188.ani.app.videoplayer.ui.top.PlayerTopBar
import me.him188.ani.danmaku.ui.DanmakuHost
import me.him188.ani.danmaku.ui.DanmakuHostState
import me.him188.ani.utils.platform.annotations.TestOnly
import me.him188.ani.utils.platform.currentPlatform
import me.him188.ani.utils.platform.isDesktop
import me.him188.ani.utils.platform.isMobile
import kotlin.time.Duration.Companion.seconds
Expand Down Expand Up @@ -207,7 +208,7 @@ internal fun EpisodeVideoImpl(
IconButton({ sideSheetState = SideSheetState.SETTINGS }, Modifier.testTag(TAG_SHOW_SETTINGS)) {
Icon(Icons.Rounded.Settings, contentDescription = "设置")
}
if (expanded) {
if (expanded && currentPlatform().isDesktop()) {
IconButton({ onToggleSidebar(!sidebarCollapsed) }, Modifier.testTag(TAG_COLLAPSE_SIDEBAR)) {
if (sidebarCollapsed) {
Icon(AniIcons.RightPanelOpen, contentDescription = "展开侧边栏")
Expand Down

0 comments on commit 0ea045c

Please sign in to comment.