一分钟搭建影视站,支持Docker等部署方式
优化player.html顶栏
developerd331bac6de51
diff --git a/css/styles.css b/css/styles.cssindex 768c1eb..0fdfc57 100644--- a/css/styles.css+++ b/css/styles.css@@ -120,16 +120,6 @@ button, .card-hover {border-radius: 4px;}-/* 设置面板区块样式 */-.settings-panel .shadow-inner {- box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);- transition: all 0.2s ease-in-out;-}--.settings-panel .shadow-inner:hover {- box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);-}-.search-button {background: var(--primary-color);color: var(--text-color);@@ -782,3 +772,45 @@ body {opacity: 1 !important;pointer-events: auto !important;}++/* 播放器顶部header移动端优化 */+.player-header {+ gap: 0.5rem;+}+.custom-title-scroll {+ overflow-x: auto;+ white-space: nowrap;+ text-overflow: ellipsis;+ -webkit-overflow-scrolling: touch;+ scrollbar-width: none;+}+.custom-title-scroll::-webkit-scrollbar {+ display: none;+}+.logo-text {+ display: inline;+}+.home-btn-text {+ display: inline;+}+@media (max-width: 640px) {+ .logo-text {+ display: none;+ }+ .home-btn-text {+ display: none;+ }+ .logo-icon {+ margin-right: 0;+ }+ .home-btn svg {+ margin-right: 0;+ }+ .player-header {+ padding-left: 2px !important;+ padding-right: 2px !important;+ }+ .custom-title-scroll {+ font-size: 1rem;+ }+}diff --git a/player.html b/player.htmlindex 503f0a6..1cc14e4 100644--- a/player.html+++ b/player.html@@ -156,18 +156,21 @@</style></head><body>- <header class="bg-[#111] p-4 flex justify-between items-center border-b border-[#333]">- <div class="flex items-center">- <a href="index.html" class="flex items-center">- <svg class="w-8 h-8 mr-2 text-[#00ccff]" fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <header class="bg-[#111] p-4 flex items-center border-b border-[#333] gap-2 player-header">+ <div class="flex items-center min-w-0">+ <a href="index.html" class="flex items-center min-w-0">+ <svg class="w-8 h-8 mr-2 text-[#00ccff] logo-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"></path></svg>- <h1 class="text-xl font-bold gradient-text">LibreTV</h1>+ <h1 class="text-xl font-bold gradient-text logo-text">LibreTV</h1></a></div>- <h2 id="videoTitle" class="text-xl font-semibold truncate flex-1 text-center"></h2>- <a href="index.html" class="px-4 py-2 bg-[#222] hover:bg-[#333] border border-[#333] rounded-lg transition-colors">- 返回首页+ <h2 id="videoTitle" class="text-xl font-semibold flex-1 text-center overflow-x-auto whitespace-nowrap truncate custom-title-scroll"></h2>+ <a href="index.html" class="px-4 py-2 bg-[#222] hover:bg-[#333] border border-[#333] rounded-lg transition-colors flex items-center min-w-0 home-btn">+ <svg class="w-5 h-5 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7m-9 2v8m4-8v8m5 0h-2a2 2 0 01-2-2V7a2 2 0 012-2h2a2 2 0 012 2v8a2 2 0 01-2 2z" />+ </svg>+ <span class="home-btn-text">返回首页</span></a></header>