From 51561399b3f6545ded8d179c8e703b7633fccd58 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sun, 26 Jan 2025 23:10:06 -0500 Subject: [PATCH] Update TGBeta.ps1 --- TGBeta.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/TGBeta.ps1 b/TGBeta.ps1 index 06d6c55..6da4663 100644 --- a/TGBeta.ps1 +++ b/TGBeta.ps1 @@ -434,11 +434,14 @@ function GetHtmlContent { .container { display: flex; - height: 100vh; + flex-direction: column; + height: 100vh; /* Ensure the container is limited to the viewport height */ + overflow: hidden; /* Prevent the container from exceeding the viewport height */ } .sidebar { width: 200px; + height: 100%; /* Ensure it doesn't exceed the container height */ background-color: var(--background-color); padding: 10px; } @@ -467,9 +470,9 @@ function GetHtmlContent { } .content { - flex: 1; + flex: 1; /* Allow the content to fill available space */ padding: 20px; - overflow-y: auto; /* Keeps scrolling within the content area if necessary */ + overflow-y: auto; /* Add scrolling only within the content if necessary */ max-height: calc(100vh - 50px); /* Adjust the height dynamically to fit within the viewport */ }