feat: set height to 0.72 of browser size

This commit is contained in:
Rohit
2025-03-17 16:24:42 +05:30
parent 3fafeefdc3
commit 0487bf00b9
4 changed files with 7 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ export const BrowserWindow = () => {
const [attributeOptions, setAttributeOptions] = useState<AttributeOption[]>([]);
const [selectedElement, setSelectedElement] = useState<{ selector: string, info: ElementInfo | null } | null>(null);
const [currentListId, setCurrentListId] = useState<number | null>(null);
const [viewportInfo, setViewportInfo] = useState<ViewportInfo>({ width: window.innerWidth * 0.7, height: window.innerHeight * 0.64 });
const [viewportInfo, setViewportInfo] = useState<ViewportInfo>({ width: window.innerWidth * 0.7, height: window.innerHeight * 0.72 });
const [listSelector, setListSelector] = useState<string | null>(null);
const [fields, setFields] = useState<Record<string, TextStep>>({});
@@ -92,13 +92,13 @@ export const BrowserWindow = () => {
const [dimensions, setDimensions] = useState({
width: window.innerWidth * 0.7,
height: window.innerHeight * 0.64
height: window.innerHeight * 0.72
});
const handleResize = useCallback(() => {
setDimensions({
width: window.innerWidth * 0.7,
height: window.innerHeight * 0.64
height: window.innerHeight * 0.72
});
}, []);