文件名横向限制

This commit is contained in:
CN-JS-HuiBai
2026-04-02 17:18:05 +08:00
parent f99417fcc5
commit 1076727596

View File

@@ -61,8 +61,13 @@ body {
}
@keyframes float {
0% { transform: translate(0, 0); }
100% { transform: translate(100px, 50px); }
0% {
transform: translate(0, 0);
}
100% {
transform: translate(100px, 50px);
}
}
.container {
@@ -99,7 +104,7 @@ header p {
.dashboard {
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
gap: 2rem;
align-items: flex-start;
}
@@ -155,6 +160,7 @@ header p {
.video-list::-webkit-scrollbar {
width: 6px;
}
.video-list::-webkit-scrollbar-thumb {
background: var(--panel-border);
border-radius: 6px;
@@ -197,6 +203,7 @@ header p {
.video-info {
flex: 1;
overflow: hidden;
min-width: 0;
}
.video-title {
@@ -213,6 +220,74 @@ header p {
margin-top: 0.25rem;
}
/* Folder tree styles */
.folder-item {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.folder-header {
padding: 1rem;
border-radius: 12px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid transparent;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 1rem;
}
.folder-header:hover {
background: rgba(255, 255, 255, 0.1);
}
.folder-icon {
width: 40px;
height: 40px;
border-radius: 8px;
background: linear-gradient(135deg, #1e293b, #334155);
display: flex;
align-items: center;
justify-content: center;
color: #8b5cf6;
}
.folder-title {
flex: 1;
font-weight: 600;
font-size: 0.95rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.folder-toggle {
color: var(--text-secondary);
display: flex;
align-items: center;
justify-content: center;
}
.folder-toggle .chevron {
transition: transform 0.3s ease;
}
.folder-item.open>.folder-header .folder-toggle .chevron {
transform: rotate(180deg);
}
.sub-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.5rem;
padding-left: 1rem;
margin-top: 0.25rem;
}
.player-wrapper {
position: relative;
width: 100%;
@@ -220,7 +295,7 @@ header p {
background: #000;
border-radius: 12px;
overflow: hidden;
box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}
#video-player {
@@ -291,14 +366,16 @@ header p {
.spinner {
width: 40px;
height: 40px;
border: 3px solid rgba(255,255,255,0.1);
border: 3px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
border-top-color: var(--accent);
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
to {
transform: rotate(360deg);
}
}
/* Responsive adjustments */
@@ -306,12 +383,12 @@ header p {
.dashboard {
grid-template-columns: 1fr;
}
.video-list-section {
order: 2;
}
.player-section {
order: 1;
}
}
}