From 7ab3d0aea82cc2a60665006a63f5214f08dc472c Mon Sep 17 00:00:00 2001 From: Viet Ngoc <96962827+ngocjohn@users.noreply.github.com> Date: Fri, 8 Dec 2023 23:11:31 +0100 Subject: [PATCH] Update index.html --- docs/index.html | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/docs/index.html b/docs/index.html index 2ce1908..4929faa 100644 --- a/docs/index.html +++ b/docs/index.html @@ -50,7 +50,7 @@ @media only screen and (max-width: 600px) { img, video { - max-width: 100%; + max-width: max-content; height: auto; } } @@ -69,22 +69,18 @@ word-break: break-word; /* Ensure that words don't overflow table cells */ } - /* Adjustments for small screens */ - @media only screen and (max-width: 600px) { - th, - td { - font-size: 1vw; /* Adjust font size for small screens */ - white-space: normal; + @media screen and (max-width: 1024px) { + /* Responsive styles for tables */ + table { + width: 100%; + margin-bottom: 20px; + overflow-x: auto; /* Add horizontal scroll for table */ } - } - /* Adjustments for small screens */ - @media screen and (min-width: 601px) and (max-width: 1440px) { th, td { - font-size: 1vw; /* Adjust font size for small screens */ - white-space: normal; + font-size: 1em; + white-space: nowrap; } - } .popup { display: none;