feat: set width to 1150

This commit is contained in:
karishmas6
2024-10-18 22:28:06 +05:30
parent 731025a406
commit c3a6612ec5

View File

@@ -7,6 +7,7 @@ import { BrowserTabs } from "../molecules/BrowserTabs";
import { useSocketStore } from "../../context/socket"; import { useSocketStore } from "../../context/socket";
import { getCurrentTabs, getCurrentUrl, interpretCurrentRecording } from "../../api/recording"; import { getCurrentTabs, getCurrentUrl, interpretCurrentRecording } from "../../api/recording";
import { Box } from '@mui/material'; import { Box } from '@mui/material';
import { InterpretationLog } from "../molecules/InterpretationLog";
// TODO: Tab !show currentUrl after recordingUrl global state // TODO: Tab !show currentUrl after recordingUrl global state
export const BrowserContent = () => { export const BrowserContent = () => {
@@ -15,6 +16,7 @@ export const BrowserContent = () => {
const [tabs, setTabs] = useState<string[]>(['current']); const [tabs, setTabs] = useState<string[]>(['current']);
const [tabIndex, setTabIndex] = React.useState(0); const [tabIndex, setTabIndex] = React.useState(0);
const [showOutputData, setShowOutputData] = useState(false);
const handleChangeIndex = useCallback((index: number) => { const handleChangeIndex = useCallback((index: number) => {
setTabIndex(index); setTabIndex(index);
@@ -115,7 +117,7 @@ export const BrowserContent = () => {
}, []) }, [])
return ( return (
<div style={{ flexGrow: 1 }}> <div style={{ background: 'red' }}>
<BrowserTabs <BrowserTabs
tabs={tabs} tabs={tabs}
handleTabChange={handleTabChange} handleTabChange={handleTabChange}
@@ -126,10 +128,11 @@ export const BrowserContent = () => {
/> />
<BrowserNavBar <BrowserNavBar
// todo: use width from browser dimension once fixed // todo: use width from browser dimension once fixed
browserWidth={900} browserWidth={1150}
handleUrlChanged={handleUrlChanged} handleUrlChanged={handleUrlChanged}
/> />
<BrowserWindow/> <BrowserWindow/>
<InterpretationLog isOpen={showOutputData} setIsOpen={setShowOutputData} />
</div> </div>
); );
} }