样式小优化

This commit is contained in:
2025-05-29 18:17:14 +08:00
parent b92d87a3b4
commit b32e055c7f
4 changed files with 16 additions and 7 deletions
@@ -39,11 +39,9 @@ export function CompactSearchBox({
};
return (
<div style={{
marginBottom: '24px'
}}>
<div>
<div style={{
padding: '20px 0',
margin: '0',
background: 'none'
}}>
@@ -115,7 +113,7 @@ export function CompactSearchBox({
border: 'none',
borderRadius: '6px',
padding: '6px 16px',
fontSize: '13px',
fontSize: '14px',
fontWeight: '500',
cursor: 'pointer',
transition: 'all 0.3s ease',
@@ -36,7 +36,7 @@ export function SearchResultHeader({
</button>
</div>
<select
className="px-3 py-2 border border-gray-200 rounded-lg text-sm"
className="px-3 py-3 border border-gray-200 rounded-lg text-sm"
value={sortBy}
onChange={(e) => onSortChange(e.target.value)}
>
@@ -92,7 +92,7 @@ export function TemplateCard({ template, onClick }: TemplateCardProps) {
<span>使{template.useCount.toLocaleString()}</span>
</div>
<div className="template-actions">
<div className="template-actions mt-3">
<button
className="action-btn primary"
onClick={(e) => handleActionClick(e, '立即使用')}
+11
View File
@@ -485,6 +485,17 @@
border-color: var(--primary-color);
}
.page-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.page-btn:disabled:hover {
background: white;
color: var(--text-color);
border-color: #e5e7eb;
}
/* 模板详情页面 */
.template-detail {
max-width: 800px;