Skip to content

Commit

Permalink
fix: 撤销网页全屏按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
zuoxiaofei authored and ambar committed Sep 17, 2021
1 parent 82b005d commit 76963bc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/griffith/src/components/Controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import CombinedTimeItem from './items/CombinedTimeItem'
import QualityMenuItem from './items/QualityMenuItem'
import VolumeItem from './items/VolumeItem'
import FullScreenButtonItem from './items/FullScreenButtonItem'
import PageFullScreenButtonItem from './items/PageFullScreenButtonItem'
import PipButtonItem from './items/PipButtonItem'
import styles from './Controller.styles'
import PlaybackRateMenuItem from './items/PlaybackRateMenuItem'
Expand Down Expand Up @@ -289,12 +288,10 @@ class Controller extends Component<ControllerProps, State> {
currentTime,
volume,
isFullScreen,
isPageFullScreen,
isPip,
onDragStart,
onDragEnd,
onToggleFullScreen,
onTogglePageFullScreen,
onTogglePip,
showPip,
progressDots,
Expand Down Expand Up @@ -355,12 +352,7 @@ class Controller extends Component<ControllerProps, State> {
{!hiddenPlaybackRateItem && <PlaybackRateMenuItem />}
{!hiddenQualityMenu && <QualityMenuItem />}
{showPip && <PipButtonItem isPip={isPip} onClick={onTogglePip} />}
{!hiddenFullScreenButton && (
<PageFullScreenButtonItem
isFullScreen={isPageFullScreen}
onClick={onTogglePageFullScreen}
/>
)}
{/* TODO: 网页全屏暂时删除 */}
{!hiddenFullScreenButton && (
<FullScreenButtonItem
isFullScreen={isFullScreen}
Expand Down

0 comments on commit 76963bc

Please sign in to comment.