chore: lint
This commit is contained in:
@@ -44,7 +44,7 @@ export const RecordingPage = ({ recordingName }: RecordingPageProps) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
//resize browser content when loaded event is fired
|
//resize browser content when loaded event is fired
|
||||||
useEffect(() => changeBrowserDimensions(), [isLoaded])
|
useEffect(() => changeBrowserDimensions(), [isLoaded])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let isCancelled = false;
|
let isCancelled = false;
|
||||||
@@ -74,7 +74,7 @@ export const RecordingPage = ({ recordingName }: RecordingPageProps) => {
|
|||||||
if (browserContentRef.current) {
|
if (browserContentRef.current) {
|
||||||
const currentWidth = Math.floor(browserContentRef.current.getBoundingClientRect().width);
|
const currentWidth = Math.floor(browserContentRef.current.getBoundingClientRect().width);
|
||||||
const innerHeightWithoutNavBar = window.innerHeight - 54.5;
|
const innerHeightWithoutNavBar = window.innerHeight - 54.5;
|
||||||
if ( innerHeightWithoutNavBar <= (currentWidth / 1.6)) {
|
if (innerHeightWithoutNavBar <= (currentWidth / 1.6)) {
|
||||||
setWidth(currentWidth - 10);
|
setWidth(currentWidth - 10);
|
||||||
setHasScrollbar(true);
|
setHasScrollbar(true);
|
||||||
} else {
|
} else {
|
||||||
@@ -115,13 +115,13 @@ export const RecordingPage = ({ recordingName }: RecordingPageProps) => {
|
|||||||
/>
|
/>
|
||||||
</Grid> */}
|
</Grid> */}
|
||||||
<Grid id="browser-content" ref={browserContentRef} item xs>
|
<Grid id="browser-content" ref={browserContentRef} item xs>
|
||||||
<BrowserContent/>
|
<BrowserContent />
|
||||||
</Grid>
|
</Grid>
|
||||||
{/* <Grid item xs={2}>
|
{/* <Grid item xs={2}>
|
||||||
<RightSidePanel pairForEdit={pairForEdit} changeBrowserDimensions={changeBrowserDimensions}/>
|
<RightSidePanel pairForEdit={pairForEdit} changeBrowserDimensions={changeBrowserDimensions}/>
|
||||||
</Grid> */}
|
</Grid> */}
|
||||||
</Grid>
|
</Grid>
|
||||||
: <Loader/>}
|
: <Loader />}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user