样式小优化

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 ( return (
<div>
<div style={{ <div style={{
marginBottom: '24px'
}}>
<div style={{
padding: '20px 0',
margin: '0', margin: '0',
background: 'none' background: 'none'
}}> }}>
@@ -115,7 +113,7 @@ export function CompactSearchBox({
border: 'none', border: 'none',
borderRadius: '6px', borderRadius: '6px',
padding: '6px 16px', padding: '6px 16px',
fontSize: '13px', fontSize: '14px',
fontWeight: '500', fontWeight: '500',
cursor: 'pointer', cursor: 'pointer',
transition: 'all 0.3s ease', transition: 'all 0.3s ease',
@@ -36,7 +36,7 @@ export function SearchResultHeader({
</button> </button>
</div> </div>
<select <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} value={sortBy}
onChange={(e) => onSortChange(e.target.value)} onChange={(e) => onSortChange(e.target.value)}
> >
@@ -92,7 +92,7 @@ export function TemplateCard({ template, onClick }: TemplateCardProps) {
<span>使{template.useCount.toLocaleString()}</span> <span>使{template.useCount.toLocaleString()}</span>
</div> </div>
<div className="template-actions"> <div className="template-actions mt-3">
<button <button
className="action-btn primary" className="action-btn primary"
onClick={(e) => handleActionClick(e, '立即使用')} onClick={(e) => handleActionClick(e, '立即使用')}
+11
View File
@@ -485,6 +485,17 @@
border-color: var(--primary-color); 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 { .template-detail {
max-width: 800px; max-width: 800px;