Skip to content

Commit

Permalink
exit full screen button tooltip text and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
interim17 committed Sep 3, 2024
1 parent 406f3b4 commit 4150484
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/containers/ViewerPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import RecordMoviesComponent from "../../components/RecordMoviesComponent";
import CameraControls from "../../components/CameraControls";
import ScaleBar from "../../components/ScaleBar";
import ViewportButton from "../../components/ViewportButton";
import { FullScreen } from "../../components/Icons";
import { ExitFullScreen, FullScreen } from "../../components/Icons";
import { EMBED_PATHNAME, TUTORIAL_PATHNAME } from "../../routes";
import ErrorNotification from "../../components/ErrorNotification";
import {
Expand Down Expand Up @@ -532,6 +532,7 @@ class ViewerPanel extends React.Component<ViewerPanelProps, ViewerPanelState> {
setError,
scaleBarLabel,
movieTitle,
embedFullscreen,
} = this.props;
const {
minimalCameraControls,
Expand Down Expand Up @@ -622,9 +623,17 @@ class ViewerPanel extends React.Component<ViewerPanelProps, ViewerPanelState> {
)}
{location.pathname === EMBED_PATHNAME && (
<ViewportButton
tooltipText="Fullscreen"
tooltipText={
embedFullscreen
? "Exit Fullscreen"
: "Fullscreen"
}
tooltipPlacement="top"
icon={FullScreen}
icon={
embedFullscreen
? ExitFullScreen
: FullScreen
}
clickHandler={this.toggleFullscreen}
/>
)}
Expand Down

0 comments on commit 4150484

Please sign in to comment.