Skip to content

Commit

Permalink
fix(web): support full screen mode when previewing csv file (#1323)
Browse files Browse the repository at this point in the history
fix: enable fullscreen feature to preview csv
  • Loading branch information
caichi-t authored Dec 2, 2024
1 parent cd87b7c commit eeca1e8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions web/src/components/organisms/Project/Asset/Asset/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,12 @@ export default (assetId?: string) => {
};

const handleFullScreen = useCallback(() => {
if (
viewerType === "geo" ||
viewerType === "geo_3d_tiles" ||
viewerType === "model_3d" ||
viewerType === "geo_mvt"
) {
viewerRef.current?.canvas.requestFullscreen();
if (viewerType === "unknown") {
return;
} else if (viewerType === "image" || viewerType === "image_svg") {
setIsModalVisible(true);
} else {
viewerRef.current?.canvas.requestFullscreen();
}
}, [viewerType]);

Expand Down

0 comments on commit eeca1e8

Please sign in to comment.