Improve layout of contact panel rows

Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2022-05-10 11:14:31 -07:00
co-authored by Nathan Sobo
parent 2cf9659f88
commit b33cbccc31
11 changed files with 137 additions and 50 deletions
+8 -6
View File
@@ -55,13 +55,21 @@ export default function contactsPanel(theme: Theme) {
top: 4,
},
},
userQueryEditorHeight: 32,
addContactButton: {
margin: { left: 6 },
color: iconColor(theme, "primary"),
buttonWidth: 8,
iconWidth: 8,
},
row: {
padding: { left: 8 },
},
rowHeight: 28,
header: {
...text(theme, "mono", "secondary", { size: "sm" }),
margin: { top: 8 },
},
treeBranchColor: borderColor(theme, "muted"),
treeBranchWidth: 1,
contactAvatar: {
@@ -85,12 +93,6 @@ export default function contactsPanel(theme: Theme) {
background: backgroundColor(theme, 100),
color: iconColor(theme, "muted"),
},
header: {
...text(theme, "mono", "secondary", { size: "sm" }),
// padding: {
// left: 8,
// }
},
project,
sharedProject,
hoveredSharedProject: {