wenliming hace 2 años
padre
commit
7b66bdf5e9
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/logic/content/twitter.js

+ 4 - 1
src/logic/content/twitter.js

@@ -2154,7 +2154,10 @@ const fixProfileTabAutoSwitch = () => {
 export const setTabGroupIframeStyle = (params) => {
     let iframeContent = getGroupTabContentNode();
     if (iframeContent) {
-        iframeContent.style.height = document.querySelector('html').offsetHeight + 'px';
+        let htmlHeight =  document.querySelector('html').offsetHeight;
+        let primaryColumnHeightn = document.querySelector('div[data-testid="primaryColumn"]').offsetHeight;
+        let height = primaryColumnHeightn > htmlHeight ? primaryColumnHeightn : htmlHeight;
+        iframeContent.style.height = height + 'px';
     }
 }