From 731025a406b48de074c9a620f16bf3e9d4a4022d Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 18 Oct 2024 22:27:29 +0530 Subject: [PATCH] fix: format --- src/index.css | 52 ++++++++++++++++++++++----------------------------- 1 file changed, 22 insertions(+), 30 deletions(-) diff --git a/src/index.css b/src/index.css index ee0326aa..cc514c80 100644 --- a/src/index.css +++ b/src/index.css @@ -5,12 +5,12 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - width: 100%; - height: 100%; - margin: 0; - padding: 0; - scrollbar-gutter: stable; - overflow: hidden; + width: 100%; + height: 100%; + margin: 0; + padding: 0; + scrollbar-gutter: stable; + overflow: hidden; } code { @@ -19,41 +19,33 @@ code { } #browser-content { - height: 100vh; /* Ensure it takes the full viewport height */ + height: 100%; + width: 100%; display: flex; - flex-direction: column; /* Stack children vertically */ -} - -.right-side-panel { - overflow-y: auto; /* Enable vertical scrolling */ - height: 100%; /* Full height of its parent */ + flex-direction: column; + transform: scale(1); /* Ensure no scaling */ + transform-origin: top left; /* Keep the position fixed */ } #browser-window { - overflow-y: auto; /* Allow vertical scrolling within this component */ - height: 100%; /* Set to 100% of parent height */ - max-height: calc(100vh - @media (max-width: 1200px) { + overflow-y: auto; + height: 100%; +} + +@media (max-width: 1200px) { #browser-content { - flex-direction: column; /* Stack them vertically on smaller screens */ + flex-direction: column; } .right-side-panel { - height: auto; /* Allow it to adjust its height */ + height: auto; } } -/* Ensure proper spacing */ .right-side-panel { overflow-y: auto; - height: 100%; /* Full height of its parent */ - margin: 0; /* Adjust margin as needed */ + height: 100%; + margin: 0; + transform: scale(1); + transform-origin: top left; } - -/* Adjust padding in grid items */ -.Grid { - padding: 8px; /* Add some padding for inner spacing */ -} -); /* Adjust based on your fixed elements */ -} - -