fix: layout bug

This commit is contained in:
imeepos 2025-07-16 16:52:44 +08:00
parent 22d079e44a
commit 49b9d46a13
1 changed files with 13 additions and 11 deletions

View File

@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { invoke } from '@tauri-apps/api/core'; import { invoke } from '@tauri-apps/api/core';
import { import {
TemplateMatchingResult, TemplateMatchingResult,
TemplateMatchingResultQueryOptions, TemplateMatchingResultQueryOptions,
MatchingResultStatus, MatchingResultStatus,
MatchingStatistics MatchingStatistics
@ -109,11 +109,11 @@ export const TemplateMatchingResultManager: React.FC<TemplateMatchingResultManag
await invoke<boolean>('soft_delete_matching_result', { await invoke<boolean>('soft_delete_matching_result', {
resultId: result.id, resultId: result.id,
}); });
// 重新加载列表 // 重新加载列表
await loadResults(); await loadResults();
await loadStatistics(); await loadStatistics();
setDeleteConfirm({ show: false, result: null }); setDeleteConfirm({ show: false, result: null });
} catch (err) { } catch (err) {
setError(`删除失败: ${err}`); setError(`删除失败: ${err}`);
@ -187,13 +187,15 @@ export const TemplateMatchingResultManager: React.FC<TemplateMatchingResultManag
<label className="form-label"> <label className="form-label">
</label> </label>
<input <div className="relative">
type="text" <input
placeholder="搜索结果名称或描述..." type="text"
value={filters.searchKeyword || ''} placeholder="搜索结果名称或描述..."
onChange={(e) => handleFilterChange({ searchKeyword: e.target.value })} value={filters.searchKeyword || ''}
className="form-input h-8" onChange={(e) => handleFilterChange({ searchKeyword: e.target.value })}
/> className="form-input h-10"
/>
</div>
</div> </div>
{/* 状态过滤 */} {/* 状态过滤 */}