样式小优化
This commit is contained in:
@@ -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, '立即使用')}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user