Skip to content

Commit 62972a3

Browse files
xupeaxupea
authored andcommitted
feat: support media query
1 parent 43132bd commit 62972a3

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "clean-csdn",
33
"displayName": "Clean CSDN Blog",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"author": "Peter Xu",
66
"description": "Just make csdn blog as clean as it should be",
77
"type": "module",

src/contentScript/index.ts

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,31 @@ chrome.storage.sync.get(['hideSider'], function (result) {
1515
if (hideSider) {
1616
injectCSS(
1717
`aside {
18-
display: none !important;
19-
}
18+
display: none !important;
19+
}
2020
21-
@media screen and (min-width: 1380px) {
22-
.nodata .container {
23-
width: unset !important;
24-
}
25-
}
26-
`,
21+
@media screen and (min-width: 1380px) {
22+
.nodata .container {
23+
width: unset !important;
24+
}
25+
}
26+
27+
@media (min-width: 1320px) and (max-width:1380px) {
28+
.nodata .container {
29+
width: unset !important;
30+
}
31+
}
32+
33+
@media screen and (max-width: 1320px) {
34+
.nodata .container {
35+
width: unset !important;
36+
}
37+
}
38+
39+
.left-toolbox {
40+
left: unset !important;
41+
}
42+
`,
2743
)
2844
}
2945
})

src/contentScript/overrides.css

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)