Skip to content

Commit 7103a9f

Browse files
yibieclaude
andcommitted
feat: add hover highlight to skill list rows
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9e5bbed commit 7103a9f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

SkillsManager/Views/SkillListView.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ private struct SkillRow: View {
204204
let onInstall: () -> Void
205205
let onUninstall: () -> Void
206206

207+
@State private var isHovered = false
208+
207209
var body: some View {
208210
VStack(alignment: .leading, spacing: 4) {
209211
HStack {
@@ -226,8 +228,15 @@ private struct SkillRow: View {
226228

227229
SkillActionButtons(skill: skill, onInstall: onInstall, onUninstall: onUninstall)
228230
}
229-
.padding(.vertical, 4)
231+
.padding(.vertical, 6)
232+
.padding(.horizontal, 8)
233+
.background(
234+
RoundedRectangle(cornerRadius: 6)
235+
.fill(isHovered ? Color.primary.opacity(0.05) : Color.clear)
236+
)
230237
.contentShape(Rectangle())
238+
.onHover { isHovered = $0 }
239+
.animation(.easeInOut(duration: 0.12), value: isHovered)
231240
}
232241
}
233242

0 commit comments

Comments
 (0)