diff --git a/package.json b/package.json index 51ea149..70ce674 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "clean-csdn", "displayName": "Clean CSDN Blog", - "version": "1.0.5", + "version": "1.0.6", "author": "Peter Xu", "description": "Just make csdn blog as clean as it should be", "type": "module", diff --git a/src/contentScript/index.ts b/src/contentScript/index.ts index cff94bb..ef00b89 100644 --- a/src/contentScript/index.ts +++ b/src/contentScript/index.ts @@ -15,15 +15,31 @@ chrome.storage.sync.get(['hideSider'], function (result) { if (hideSider) { injectCSS( `aside { - display: none !important; - } + display: none !important; + } - @media screen and (min-width: 1380px) { - .nodata .container { - width: unset !important; - } - } - `, + @media screen and (min-width: 1380px) { + .nodata .container { + width: unset !important; + } + } + + @media (min-width: 1320px) and (max-width:1380px) { + .nodata .container { + width: unset !important; + } + } + + @media screen and (max-width: 1320px) { + .nodata .container { + width: unset !important; + } + } + + .left-toolbox { + left: unset !important; + } + `, ) } }) diff --git a/src/contentScript/overrides.css b/src/contentScript/overrides.css deleted file mode 100644 index 2e877f5..0000000 --- a/src/contentScript/overrides.css +++ /dev/null @@ -1,11 +0,0 @@ -aside { - display: none !important; -} -.passport-login-tip-container { - display: none !important; -} -@media screen and (min-width: 1380px) { - .nodata .container { - width: unset !important; - } -}