浏览代码

[edit] style

wenliming 2 年之前
父节点
当前提交
2aa47db9e1
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/logic/content/twitter.js

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

@@ -1340,7 +1340,12 @@ function publishNFTTweetEvent({ groupId, postId, srcContent }) {
             }, () => { });
 
             setTimeout(() => {
-                document.querySelector('a[data-testid="AppTabBar_Profile_Link"]').click()
+                document.querySelector('a[data-testid="AppTabBar_Profile_Link"]').click();
+                setGroupTabSelfStyle({
+                    groupColor: 'rgb(83, 100, 113)',
+                    groupFontWeight: '500',
+                    lineDisplay: 'none'
+                });
             }, 2000);
         });
     }, 800)
@@ -1915,10 +1920,12 @@ const setTabContentStyle = (params) => {
             if (visibility == 'hidden') {
                 tweetTabContent.style.visibility = 'visible';
                 tweetTabContent.style.height = 'auto';
+                tweetTabContent.style.overflow = 'auto';
             }
         } else {
             tweetTabContent.style.visibility = 'hidden';
             tweetTabContent.style.height = '0px';
+            tweetTabContent.style.overflow = 'hidden';
         }
     }