|
@@ -17,10 +17,11 @@ import FluidHeight from 'sentry/views/replays/detail/layout/fluidHeight';
|
|
import {CanvasSupportNotice} from './canvasSupportNotice';
|
|
import {CanvasSupportNotice} from './canvasSupportNotice';
|
|
|
|
|
|
type Props = {
|
|
type Props = {
|
|
|
|
+ isLoading: boolean;
|
|
toggleFullscreen: () => void;
|
|
toggleFullscreen: () => void;
|
|
};
|
|
};
|
|
|
|
|
|
-function ReplayView({toggleFullscreen}: Props) {
|
|
|
|
|
|
+function ReplayView({toggleFullscreen, isLoading}: Props) {
|
|
const isFullscreen = useIsFullscreen();
|
|
const isFullscreen = useIsFullscreen();
|
|
const [isSidebarOpen, setIsSidebarOpen] = useState(true);
|
|
const [isSidebarOpen, setIsSidebarOpen] = useState(true);
|
|
const {isFetching, replay} = useReplayContext();
|
|
const {isFetching, replay} = useReplayContext();
|
|
@@ -32,7 +33,7 @@ function ReplayView({toggleFullscreen}: Props) {
|
|
<PlayerContainer>
|
|
<PlayerContainer>
|
|
<ContextContainer>
|
|
<ContextContainer>
|
|
{isVideoReplay ? <ReplayCurrentScreen /> : <ReplayCurrentUrl />}
|
|
{isVideoReplay ? <ReplayCurrentScreen /> : <ReplayCurrentUrl />}
|
|
- <BrowserOSIcons showBrowser={!isVideoReplay} />
|
|
|
|
|
|
+ <BrowserOSIcons showBrowser={!isVideoReplay} isLoading={isLoading} />
|
|
{isFullscreen ? (
|
|
{isFullscreen ? (
|
|
<ReplaySidebarToggleButton
|
|
<ReplaySidebarToggleButton
|
|
isOpen={isSidebarOpen}
|
|
isOpen={isSidebarOpen}
|
|
@@ -77,7 +78,7 @@ const Panel = styled(FluidHeight)`
|
|
const ContextContainer = styled('div')`
|
|
const ContextContainer = styled('div')`
|
|
display: grid;
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
grid-auto-flow: column;
|
|
- grid-template-columns: 1fr max-content max-content;
|
|
|
|
|
|
+ grid-template-columns: 1fr max-content;
|
|
align-items: center;
|
|
align-items: center;
|
|
gap: ${space(1)};
|
|
gap: ${space(1)};
|
|
`;
|
|
`;
|