From 9915379ef588d8cab4e28f83531f7ee336ea2738 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 18 Oct 2024 19:08:28 +0530 Subject: [PATCH] feat: styles for browser window scrolling --- src/index.css | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/index.css b/src/index.css index 1d4c3871..62205617 100644 --- a/src/index.css +++ b/src/index.css @@ -18,6 +18,19 @@ code { monospace; } -html { - overflow-y:scroll; +#browser-content { + height: 100vh; /* Ensure it takes the full viewport height */ + display: flex; + flex-direction: column; /* Stack children vertically */ +} + +.right-side-panel { + overflow-y: auto; /* Enable vertical scrolling */ + height: 100%; /* Full height of its parent */ +} + +#browser-window { + overflow-y: auto; /* Allow vertical scrolling within this component */ + height: 100%; /* Set to 100% of parent height */ + max-height: calc(100vh - ); /* Adjust based on your fixed elements */ }