fix: 移除侧边栏分类的编辑图标

This commit is contained in:
小龙 2026-04-06 18:04:36 +00:00
parent 94f3708ccd
commit 4a16ce7707

View File

@ -206,15 +206,10 @@ function App() {
</div> </div>
{categories.map(cat => ( {categories.map(cat => (
<div key={cat.id} className="category-item-wrapper"> <div key={cat.id} className={`category-item ${selectedCategory === cat.id ? 'active' : ''}`} onClick={() => setSelectedCategory(cat.id)}>
<div className={`category-item ${selectedCategory === cat.id ? 'active' : ''}`} onClick={() => setSelectedCategory(cat.id)}> <div className="category-icon"><Icon name={cat.icon || 'folder'} size={14}/></div>
<div className="category-icon"><Icon name={cat.icon || 'folder'} size={14}/></div> <span className="category-name">{cat.name}</span>
<span className="category-name">{cat.name}</span> <span className="category-count">{getCategoryCount(cat.id)}</span>
<span className="category-count">{getCategoryCount(cat.id)}</span>
</div>
<button className="category-edit-btn" onClick={(e) => { e.stopPropagation(); editCategory(cat) }} title="编辑">
<Icon name="edit" size={12}/>
</button>
</div> </div>
))} ))}
</div> </div>