feat: browser & right panel ui

This commit is contained in:
karishmas6
2024-10-11 10:20:24 +05:30
parent 3fa18aa45c
commit 8c86e84a19
23 changed files with 67 additions and 57 deletions

View File

@@ -6,6 +6,7 @@ import { useBrowserDimensionsStore } from "../../context/browserDimensions";
import { BrowserTabs } from "../molecules/BrowserTabs";
import { useSocketStore } from "../../context/socket";
import { getCurrentTabs, getCurrentUrl, interpretCurrentRecording } from "../../api/recording";
import { Box } from '@mui/material';
// TODO: Tab !show currentUrl after recordingUrl global state
export const BrowserContent = () => {
@@ -114,7 +115,7 @@ export const BrowserContent = () => {
}, [])
return (
<BrowserContentWrapper>
<>
<BrowserTabs
tabs={tabs}
handleTabChange={handleTabChange}
@@ -125,14 +126,13 @@ export const BrowserContent = () => {
/>
<BrowserNavBar
// todo: use width from browser dimension once fixed
browserWidth={1270}
browserWidth={900}
handleUrlChanged={handleUrlChanged}
/>
<BrowserWindow/>
</BrowserContentWrapper>
</>
);
}
const BrowserContentWrapper = styled.div`
grid-area: browser;
`;