fix: 花名册操作按钮缩小(图标 h-3.5 + padding p-1)

This commit is contained in:
freedakgmail
2026-08-17 20:13:06 +08:00
parent 226c4f1444
commit 5e03b8b60f
+12 -12
View File
@@ -965,14 +965,14 @@ export default function Roster() {
type="button"
title="调薪"
aria-label={`${e.name}调薪`}
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
className="rounded-md p-1 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
onClick={(ev) => {
ev.stopPropagation()
setSalaryEmployee(e)
setShowSalaryModal(true)
}}
>
<DollarSign className="h-4 w-4" />
<DollarSign className="h-3.5 w-3.5" />
</button>
{/* 试用期员工显示转正按钮 */}
{e.probationInfo?.isProbation && (
@@ -980,28 +980,28 @@ export default function Roster() {
type="button"
title="转正"
aria-label={`${e.name}办理转正`}
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
className="rounded-md p-1 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
onClick={(ev) => {
ev.stopPropagation()
setConfirmEmployee(e)
setShowConfirmModal(true)
}}
>
<CheckCircle className="h-4 w-4" />
<CheckCircle className="h-3.5 w-3.5" />
</button>
)}
<button
type="button"
title="调动"
aria-label={`${e.name}调动`}
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
className="rounded-md p-1 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
onClick={(ev) => {
ev.stopPropagation()
setDeptEmployee(e)
setShowDeptModal(true)
}}
>
<Building2 className="h-4 w-4" />
<Building2 className="h-3.5 w-3.5" />
</button>
</div>
<div className="flex items-center justify-center gap-0.5 border-t border-gray-100 pt-1.5">
@@ -1009,7 +1009,7 @@ export default function Roster() {
type="button"
title="开具证明"
aria-label={`${e.name}开具证明`}
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
className="rounded-md p-1 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
onClick={(ev) => {
ev.stopPropagation()
setCertEmployee(e)
@@ -1018,14 +1018,14 @@ export default function Roster() {
setShowCertModal(true)
}}
>
<FileText className="h-4 w-4" />
<FileText className="h-3.5 w-3.5" />
</button>
{(e.contractStatus === 'expiring' || e.contractStatus === 'expired') && (
<button
type="button"
title="续签合同"
aria-label={`${e.name}续签合同`}
className="rounded-md p-1.5 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
className="rounded-md p-1 text-gray-500 transition hover:bg-primary/10 hover:text-primary"
onClick={(ev) => {
ev.stopPropagation()
// 自动推导新合同开始日期:原合同结束日 + 1天
@@ -1043,21 +1043,21 @@ export default function Roster() {
setShowRenewModal(true)
}}
>
<RotateCcw className="h-4 w-4" />
<RotateCcw className="h-3.5 w-3.5" />
</button>
)}
<button
type="button"
title="离职"
aria-label={`${e.name}办理离职`}
className="rounded-md p-1.5 text-gray-500 transition hover:bg-danger/10 hover:text-danger"
className="rounded-md p-1 text-gray-500 transition hover:bg-danger/10 hover:text-danger"
onClick={(ev) => {
ev.stopPropagation()
setResignEmployee(e)
setShowResignModal(true)
}}
>
<UserX className="h-4 w-4" />
<UserX className="h-3.5 w-3.5" />
</button>
</div>
</div>