ソースを参照

Fix Docker脚本

Nolovenodie丶 2 年 前
コミット
e85089d410
2 ファイル変更8 行追加7 行削除
  1. 6 5
      script.sh
  2. 2 2
      static/css/style.css

+ 6 - 5
script.sh

@@ -1,12 +1,13 @@
 #!/bin/bash
 
 # 创建emby-crx目录并下载所需文件
+rm -rf emby-crx
 mkdir -p emby-crx
-wget -N https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/static/css/style.css -P emby-crx/
-wget -N https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/static/js/common-utils.js -P emby-crx/
-wget -N https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/static/js/jquery-3.6.0.min.js -P emby-crx/
-wget -N https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/static/js/md5.min.js -P emby-crx/
-wget -N https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/content/main.js -P emby-crx/
+wget https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/static/css/style.css -P emby-crx/
+wget https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/static/js/common-utils.js -P emby-crx/
+wget https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/static/js/jquery-3.6.0.min.js -P emby-crx/
+wget https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/static/js/md5.min.js -P emby-crx/
+wget https://raw.githubusercontent.com/Nolovenodie/emby-crx/master/content/main.js -P emby-crx/
 
 # 读取index.html文件内容
 content=$(cat index.html)

+ 2 - 2
static/css/style.css

@@ -106,7 +106,7 @@
 	user-select: none;
 	object-fit: contain;
 	height: clamp(0rem, -2.182rem + 10.91vw, 6rem);
-	width: fit-content;
+	/* width: fit-content; */
 	transform: translateY(calc(-50% - clamp(-2rem, -3.455rem + 7.27vw, 2rem)));
 	right: calc(3.4% + min(0.72em, max(0.48em, 1.78vw)));
 	opacity: 0;
@@ -156,7 +156,7 @@
 	padding: clamp(0rem, -1.313rem + 3.75vw, 1.5rem) 0;
 	box-sizing: border-box;
 	display: flex;
-	justify-content: end;
+	justify-content: flex-end;
 	flex-direction: column;
 	background-image: linear-gradient(90deg, rgba(0, 0, 0, .6), transparent);
 }