Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/browser/BrowserRecordingSave.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ const BrowserRecordingSave = () => {
overflow: 'hidden',
display: 'flex',
justifyContent: 'space-between',
height: "48px"
height: "48px",
marginLeft: '10px'
}}>
<Button
onClick={() => setOpenDiscardModal(true)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/recorder/RightSidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
const isDarkMode = theme.darkMode;

return (
<Paper sx={{ height: panelHeight, width: 'auto', alignItems: "center", background: 'inherit' }} id="browser-actions" elevation={0}>
<Paper sx={{ height: panelHeight, width: 'auto', alignItems: "center", background: 'inherit', position: "relative", border: "none" }} id="browser-actions" elevation={0}>
<ActionDescriptionBox isDarkMode={isDarkMode} />
<Box display="flex" flexDirection="column" gap={2} style={{ margin: '13px' }}>
{!isAnyActionActive && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/run/InterpretationLog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
background: `${darkMode ? '#1d1c1cff' : 'white'}`,
color: `${darkMode ? 'white' : 'black'}`,
padding: '10px',
height: "calc(100% - 140px)",
height: outputPreviewHeight,
width: outputPreviewWidth,
display: 'flex',
flexDirection: 'column',
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/dimensionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const getResponsiveDimensions = (): AppDimensions => {
browserWidth,
browserHeight,
panelHeight: browserHeight + 137,
outputPreviewHeight: windowHeight * 0.7,
outputPreviewHeight: windowHeight * 0.9,
outputPreviewWidth,
canvasWidth: browserWidth,
canvasHeight: browserHeight
Expand Down
24 changes: 12 additions & 12 deletions src/pages/PageWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const PageWrapper = () => {
const sessionParam = urlParams.get('session');
const storedSessionId = getTabState('recordingSessionId');
const storedRecordingUrl = getTabState('recordingUrl');

if (location.pathname === '/recording-setup' && sessionParam && sessionParam === storedSessionId) {
setBrowserId('new-recording');
setRecordingName('');
Expand All @@ -67,14 +67,14 @@ export const PageWrapper = () => {

navigate('/recording');
}
else if (location.pathname === '/recording' ||
(getTabState('nextTabIsRecording') === 'true' && sessionParam === storedSessionId)) {
else if (location.pathname === '/recording' ||
(getTabState('nextTabIsRecording') === 'true' && sessionParam === storedSessionId)) {
setIsRecordingMode(true);

if (location.pathname !== '/recording') {
navigate('/recording');
}

window.sessionStorage.removeItem('nextTabIsRecording');
} else if (tabMode === 'main') {
console.log('Tab is in main application mode');
Expand All @@ -88,26 +88,26 @@ export const PageWrapper = () => {

const isAuthPage = location.pathname === '/login' || location.pathname === '/register';
const isRecordingPage = location.pathname === '/recording';

return (
<div>
<AuthProvider>
<SocketProvider>
<React.Fragment>
{/* Show NavBar only for main app pages, not for recording pages */}
{!isRecordingPage && (
<Box sx={{
position: 'sticky',
top: 0,
<Box sx={{
position: 'sticky',
top: 0,
zIndex: 1100,
backgroundColor: 'background.paper'
}}>
<NavBar recordingName={recordingName} isRecording={false} />
</Box>
)}
<Box sx={{
display: isAuthPage || isRecordingPage ? 'block' : 'flex',
minHeight: isAuthPage || isRecordingPage ? '100vh' : 'calc(100vh - 64px)'
<Box sx={{
display: isAuthPage ? 'block' : 'flex',
minHeight: isAuthPage ? '100vh' : 'calc(100vh - 64px)'
}}>
<Routes>
<Route element={<UserRoute />}>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/RecordingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ export const RecordingPage = ({ recordingName }: RecordingPageProps) => {
{isLoaded ? (
<>
<Grid container direction="row" style={{ flexGrow: 1, height: '100%' }}>
<Grid item xs={12} md={9} lg={9} style={{ height: '100%', overflow: 'hidden', position: 'relative' }}>
<div style={{ height: '100%', overflow: 'auto' }}>
<Grid item xs={12} md={9} lg={9} style={{ height: '100%', overflow: 'hidden', position: 'relative' }}>
<div style={{ height: '100%', overflow: 'hidden', display: 'flex', flexDirection: 'column', }}>
<BrowserContent />
<InterpretationLog isOpen={showOutputData} setIsOpen={setShowOutputData} />
</div>
Expand Down