浏览代码

fix(insights): fix feed component drawer stretching on large screens

Connor Prussin 8 月之前
父节点
当前提交
7a363d6c29

+ 5 - 0
apps/insights/src/components/PriceComponentDrawer/index.module.scss

@@ -1,6 +1,11 @@
 @use "@pythnetwork/component-library/theme";
 
 .priceComponentDrawer {
+  .priceComponentDrawerBody {
+    grid-template-rows: max-content max-content;
+    grid-template-columns: 100%;
+  }
+
   .badges {
     @include theme.breakpoint("lg") {
       display: none;

+ 1 - 0
apps/insights/src/components/PriceComponentDrawer/index.tsx

@@ -149,6 +149,7 @@ export const PriceComponentDrawer = ({
       }
       isOpen={isFeedDrawerOpen}
       className={styles.priceComponentDrawer ?? ""}
+      bodyClassName={styles.priceComponentDrawerBody ?? ""}
     >
       {cluster === Cluster.PythtestConformance && (
         <InfoBox