From 86df2e0fd936d3608fb030b5f9e0be23a6232dd7 Mon Sep 17 00:00:00 2001
From: AAGaming <aagaming@riseup.net>
Date: Wed, 3 Jul 2024 22:38:36 -0400
Subject: inject some css into the QAM to fix overscroll issues

---
 frontend/src/plugin-loader.tsx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

(limited to 'frontend/src/plugin-loader.tsx')

diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index 59d6b5bd..d17b9a9a 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -115,6 +115,25 @@ class PluginLoader extends Logger {
         <DeckyStateContextProvider deckyState={this.deckyState}>
           <FaPlug />
           <TabBadge />
+          <style>
+            {`
+              /* fixes random overscrolling in QAM */
+              .${quickAccessMenuClasses?.TabContentColumn} {
+                flex-grow: 1;
+                margin-top: 0 !important;
+                margin-bottom: 0 !important;
+              }
+              .${quickAccessMenuClasses?.Tab} {
+                flex-grow: 1;
+                height: unset !important;
+              }
+              /* they broke the footer a while ago and forgot to update the styles LOL */
+              .${quickAccessMenuClasses?.Tabs}.${quickAccessMenuClasses.TabsWithFooter} {
+                margin-bottom: 0 !important;
+                padding-bottom: 0 !important;
+              }
+            `}
+          </style>
         </DeckyStateContextProvider>
       ),
     });
-- 
cgit v1.2.3

