Selaa lähdekoodia

Update 适配Beta 4.8.0

Nolovenodie丶 3 vuotta sitten
vanhempi
sitoutus
3d745518b5
2 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 3 1
      content/main.js
  2. 3 3
      static/css/style.css

+ 3 - 1
content/main.js

@@ -25,6 +25,8 @@ class Home {
 	}
 
 	static async init() {
+		// Beta
+		$(".view:not(.hide)").attr("data-type", "home");
 		await this.initBanner();
 		this.initEvent();
 	}
@@ -206,6 +208,6 @@ class Home {
 }
 
 // 运行
-if ($("meta[name=application-name]").attr("content") == "Emby") {
+if ($("meta[name=application-name]").attr("content") == "Emby" || $(".accent-emby") != undefined) {
 	Home.start();
 }

+ 3 - 3
static/css/style.css

@@ -1,12 +1,12 @@
 ::-webkit-scrollbar {
-	width: .3em;
+	width: .3em !important;
 }
 
 .mdl-spinner {
 	zoom: .5;
 }
 
-.skinHeader-withBackground{
+.skinHeader-withBackground {
 	width: 100%;
 	background-image: linear-gradient(rgba(0,0,0,.5), transparent);
 	background-color: unset;
@@ -120,7 +120,7 @@
 }
 
 .misty-loading {
-	z-index: 999;
+	z-index: 9999;
 	position: fixed;
 	top: 0;
 	left: 0;