Init Repo

This commit is contained in:
2026-02-28 03:22:04 +08:00
commit de59b57ee7
883 changed files with 156857 additions and 0 deletions
+288
View File
@@ -0,0 +1,288 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shot Toolbar Alignment Test</title>
<style>
body {
margin: 0;
padding: 20px;
font-family: Arial, sans-serif;
background: #f5f5f5;
}
.toolbar {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(8px);
border: 1px solid #e5e5e5;
border-radius: 8px;
padding: 1rem 1.5rem;
margin-bottom: 1rem;
}
.toolbar-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.left-filters {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.right-actions {
display: flex;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
.view-toggle {
display: flex;
align-items: center;
border: 1px solid #e5e5e5;
border-radius: 6px;
height: 32px;
padding: 2px;
}
.view-btn {
height: 28px;
padding: 0 8px;
border: none;
background: transparent;
border-radius: 4px;
cursor: pointer;
}
.view-btn.active {
background: #f1f5f9;
}
.filter-btn {
height: 32px;
padding: 0 12px;
border: 1px dashed #e5e5e5;
background: white;
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
}
.search-input {
width: 256px;
height: 32px;
padding: 0 12px 0 36px;
border: 1px solid #e5e5e5;
border-radius: 6px;
position: relative;
}
.search-container {
position: relative;
}
.search-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 16px;
color: #6b7280;
}
.action-btn {
height: 32px;
padding: 0 12px;
border: 1px solid #e5e5e5;
background: white;
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
}
.action-btn.primary {
background: #3b82f6;
color: white;
border-color: #3b82f6;
}
.badge {
background: #f1f5f9;
color: #475569;
padding: 2px 6px;
border-radius: 4px;
font-size: 12px;
margin-left: 8px;
}
.highlight {
background: #fef3c7;
padding: 1rem;
border-radius: 8px;
margin-bottom: 1rem;
border-left: 4px solid #f59e0b;
}
.icon {
width: 16px;
height: 16px;
display: inline-block;
}
@media (max-width: 768px) {
.toolbar-row {
flex-direction: column;
align-items: stretch;
gap: 1rem;
}
.right-actions {
justify-content: space-between;
}
.search-input {
width: 100%;
max-width: none;
}
}
</style>
</head>
<body>
<div class="highlight">
<strong>✅ Shot Toolbar Alignment Updated:</strong>
<ul>
<li>Search field moved to the right side with fixed width (256px)</li>
<li>Action buttons (Bulk Create, Create Shot) aligned to the right</li>
<li>Filters remain on the left side</li>
<li>Responsive design maintains functionality on mobile</li>
</ul>
</div>
<!-- Updated Toolbar Layout -->
<div class="toolbar">
<div class="toolbar-row">
<!-- Left Side - Filters -->
<div class="left-filters">
<!-- View Toggle -->
<div class="view-toggle">
<button class="view-btn"></button>
<button class="view-btn"></button>
<button class="view-btn active"></button>
</div>
<!-- Episode Filter -->
<button class="filter-btn">
🎬 Episode
<span class="badge">1</span>
</button>
<!-- Task Status Filter -->
<button class="filter-btn">
📊 Task Status
<span class="badge">2</span>
</button>
<!-- Column Visibility -->
<button class="filter-btn">
⚙️ View
<span class="badge">3</span>
</button>
<!-- Detail Panel Toggle -->
<button class="filter-btn">
📱 Hide Details
</button>
<!-- Clear Filters -->
<button class="filter-btn">
Reset ✕
</button>
</div>
<!-- Right Side - Search and Actions -->
<div class="right-actions">
<!-- Search -->
<div class="search-container">
<span class="search-icon">🔍</span>
<input type="text" class="search-input" placeholder="Search shots..." />
</div>
<!-- Action Buttons -->
<button class="action-btn">
<span class="icon">📚</span>
Bulk Create
</button>
<button class="action-btn primary">
<span class="icon"></span>
Create Shot
</button>
</div>
</div>
</div>
<!-- Previous Layout for Comparison -->
<div class="highlight" style="background: #fee2e2; border-color: #ef4444;">
<strong>❌ Previous Layout (for comparison):</strong>
<p>Search and action buttons were mixed in with filters, making the toolbar cluttered and less organized.</p>
</div>
<div class="toolbar" style="opacity: 0.6;">
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem;">
<div class="view-toggle">
<button class="view-btn"></button>
<button class="view-btn"></button>
<button class="view-btn active"></button>
</div>
<button class="filter-btn">🎬 Episode</button>
<button class="filter-btn">📊 Task Status</button>
<button class="filter-btn">⚙️ View</button>
<button class="filter-btn">📱 Hide Details</button>
<button class="filter-btn">Reset ✕</button>
<div class="search-container" style="flex: 1; max-width: 200px;">
<span class="search-icon">🔍</span>
<input type="text" class="search-input" placeholder="Search shots..." style="width: 100%;" />
</div>
<button class="action-btn">📚➕</button>
<button class="action-btn primary"></button>
</div>
</div>
<!-- Mobile View Test -->
<div class="highlight" style="background: #e0f2fe; border-color: #0284c7;">
<strong>📱 Mobile Responsive:</strong>
<p>On smaller screens, the toolbar stacks vertically while maintaining the left/right alignment within each row.</p>
</div>
<div class="toolbar" style="max-width: 400px;">
<div class="toolbar-row">
<div class="left-filters">
<div class="view-toggle">
<button class="view-btn"></button>
<button class="view-btn"></button>
<button class="view-btn active"></button>
</div>
<button class="filter-btn">🎬 Episode</button>
<button class="filter-btn">📊 Status</button>
</div>
<div class="right-actions">
<div class="search-container">
<span class="search-icon">🔍</span>
<input type="text" class="search-input" placeholder="Search..." style="width: 150px;" />
</div>
<button class="action-btn">📚</button>
<button class="action-btn primary"></button>
</div>
</div>
</div>
</body>
</html>