From 9e6fe47b4408ed35ed491254b0338c0db001905d Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Tue, 19 Mar 2024 21:39:16 +0530 Subject: [PATCH 1/2] fix(hero): not fully scrollable in mobile --- frontend/src/Hero.tsx | 18 +++++++----------- frontend/src/Navigation.tsx | 2 +- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/frontend/src/Hero.tsx b/frontend/src/Hero.tsx index e14e0cd1f..497fc41e2 100644 --- a/frontend/src/Hero.tsx +++ b/frontend/src/Hero.tsx @@ -7,9 +7,7 @@ export default function Hero({ className = '' }: { className?: string }) { const [isDarkTheme] = useDarkTheme(); return (

DocsGPT

@@ -39,16 +37,14 @@ export default function Hero({ className = '' }: { className?: string }) { )}
{/* first */} -
+
{/* Add Mobile check here */} {isMobile ? ( @@ -93,11 +89,11 @@ export default function Hero({ className = '' }: { className?: string }) {
{/* second */} -
+
{/* Add Mobile check here */} {isMobile ? ( @@ -138,7 +134,7 @@ export default function Hero({ className = '' }: { className?: string }) {
{/* third */} -
+
-
+
{conversations && (

Chats

From 6f1548b7f8cace1f73080298875a7e7dca9e0886 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Tue, 19 Mar 2024 21:40:00 +0530 Subject: [PATCH 2/2] customised scrollbar --- frontend/src/index.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/frontend/src/index.css b/frontend/src/index.css index 244d78709..263b86f86 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -2,6 +2,26 @@ @tailwind components; @tailwind utilities; +::-webkit-scrollbar { + width: 10px; +} +::-webkit-scrollbar-track { + background: #f1f1f1; +} +.dark ::-webkit-scrollbar-track { + background: #2f3036; +} +::-webkit-scrollbar-thumb { + background: #888; + border-radius: 40px; +} +::-webkit-scrollbar-thumb:hover { + background: #555; +} +.dark ::-webkit-scrollbar-thumb:hover { + background: #b1afaf; +} + /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ /* Document