优化样式

This commit is contained in:
2025-03-28 16:06:58 +08:00
parent 6ace6c09d1
commit 29699df14a
2 changed files with 9 additions and 92 deletions
+9 -88
View File
@@ -1112,13 +1112,7 @@ export function ReviewSettings({ onChange }: ReviewSettingsProps) {
<div id="rules-container">
<div className="flex items-center justify-between mb-2">
<div> <span className="text-blue-600 font-medium">{rules.length}</span> </div>
<button
type="button"
className="ant-btn ant-btn-default"
onClick={handleAddRule}
>
<i className="ri-add-line mr-1"></i>
</button>
</div>
{rules.length === 0 ? (
@@ -1181,87 +1175,14 @@ export function ReviewSettings({ onChange }: ReviewSettingsProps) {
</div>
</div>
<div className="form-section mb-6">
<div className="form-section-title mb-2">
<label className="form-label" htmlFor="action-section"></label>
</div>
<div id="action-section">
<div className="form-radio-group mb-3">
<label className="form-radio-item">
<input
type="radio"
name="action-type"
className="form-radio"
checked={actionType === 'warning'}
onChange={() => handleActionTypeChange('warning')}
/>
<span></span>
</label>
<label className="form-radio-item">
<input
type="radio"
name="action-type"
className="form-radio"
checked={actionType === 'blocking'}
onChange={() => handleActionTypeChange('blocking')}
/>
<span></span>
</label>
<label className="form-radio-item">
<input
type="radio"
name="action-type"
className="form-radio"
checked={actionType === 'notification'}
onChange={() => handleActionTypeChange('notification')}
/>
<span></span>
</label>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 mt-3">
<div className="col-span-1">
<label className="form-label" htmlFor="warning-message"></label>
<textarea
id="warning-message"
className="form-textarea"
placeholder="请输入触发规则时向用户显示的提示信息"
></textarea>
<div className="form-tip"></div>
</div>
{actionType === 'notification' && (
<div className="col-span-1">
<label className="form-label" htmlFor="notification-target"></label>
<select id="notification-target" className="form-select mb-2">
<option value="creator"></option>
<option value="supervisor"></option>
<option value="legal"></option>
<option value="custom"></option>
</select>
<div className="mt-2">
<label className="form-label" htmlFor="notification-method"></label>
<div className="flex items-center space-x-4">
<label className="inline-flex items-center">
<input type="checkbox" className="form-checkbox" id="notification-system" defaultChecked />
<span className="ml-2"></span>
</label>
<label className="inline-flex items-center">
<input type="checkbox" className="form-checkbox" id="notification-email" />
<span className="ml-2"></span>
</label>
<label className="inline-flex items-center">
<input type="checkbox" className="form-checkbox" id="notification-sms" />
<span className="ml-2"></span>
</label>
</div>
</div>
</div>
)}
</div>
</div>
<div className="flex justify-center">
<button
type="button"
className="ant-btn ant-btn-default"
onClick={handleAddRule}
>
<i className="ri-add-line mr-1"></i>
</button>
</div>
<div className="divider"></div>