diff --git a/src/main/java/xin/wenjing/halo/artalk/ArtalkStaticInject.java b/src/main/java/xin/wenjing/halo/artalk/ArtalkStaticInject.java index 674696f..c0030db 100644 --- a/src/main/java/xin/wenjing/halo/artalk/ArtalkStaticInject.java +++ b/src/main/java/xin/wenjing/halo/artalk/ArtalkStaticInject.java @@ -75,7 +75,7 @@ private String pubScriptInject(boolean enableLatex, String cssUrl, String jsUrl) """.formatted(version, cssUrl, jsUrl); } }else{ - return null; + return ""; } } diff --git a/src/main/resources/static/artalkBeautify.css b/src/main/resources/static/artalkBeautify.css index 0b3dc2d..67f0c5a 100644 --- a/src/main/resources/static/artalkBeautify.css +++ b/src/main/resources/static/artalkBeautify.css @@ -41,23 +41,23 @@ } .atk-sidebar-layer { - top: 10%; - left: 20%; - width: 60%; - height: 80%; + top: 10% !important; + left: 20% !important; + width: 60% !important; + height: 80% !important; transform: translateY(120%); - border-radius: 12px; - padding: 10px 0; - background: #FFF; + border-radius: 12px !important; + padding: 10px 0 !important; + background: #FFF !important; } @media only screen and (max-width: 600px) { .atk-sidebar-layer { - width: 100%; - height: 100%; - left: 0; - top: 0; - border-radius: 0 + width: 100% !important; + height: 100% !important; + left: 0 !important; + top: 0 !important; + border-radius: 0 !important } } @@ -144,3 +144,6 @@ div#post-comment { margin-left: auto; } + + +