Skip to content

Commit 2e65e66

Browse files
committed
Add help tooltip
1 parent 5ee6df3 commit 2e65e66

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CodeEdit/Features/Contributors/ContributorRowView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ struct ContributorRowView: View {
4444
.resizable()
4545
.frame(width: 32, height: 32)
4646
.clipShape(Circle())
47+
.help(contributor.name)
4748
} placeholder: {
4849
Image(systemName: "person.circle.fill")
4950
.resizable()
5051
.frame(width: 32, height: 32)
52+
.help(contributor.name)
5153
}
5254
}
5355

CodeEdit/Features/NavigatorArea/SourceControlNavigator/History/Views/CommitDetailsHeaderView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,13 @@ struct CommitDetailsHeaderView: View {
7070
.resizable()
7171
.clipShape(Circle())
7272
.frame(width: 32, height: 32)
73+
.help(commit.author)
7374
} else if phase.error != nil {
7475
defaultAvatar
76+
.help(commit.author)
7577
} else {
7678
defaultAvatar
79+
.help(commit.author)
7780
}
7881
}
7982

CodeEdit/Features/NavigatorArea/SourceControlNavigator/History/Views/CommitListItemView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ struct CommitListItemView: View {
5858
.resizable()
5959
.clipShape(Circle())
6060
.frame(width: 32, height: 32)
61+
.help(commit.author)
6162
} else if phase.error != nil {
6263
defaultAvatar
64+
.help(commit.author)
6365
} else {
6466
defaultAvatar
67+
.help(commit.author)
6568
}
6669
}
6770
VStack(alignment: .leading, spacing: 0) {

0 commit comments

Comments
 (0)