Always show invite link in contacts popover

This commit is contained in:
Antonio Scandurra
2022-10-11 18:22:00 +02:00
parent f83de0a91c
commit ba6c5441c0
5 changed files with 71 additions and 68 deletions
-11
View File
@@ -139,17 +139,6 @@ export default function contactList(theme: Theme) {
background: backgroundColor(theme, 100),
color: iconColor(theme, "muted"),
},
inviteRow: {
padding: {
left: sidePadding,
right: sidePadding,
},
border: { top: true, width: 1, color: borderColor(theme, "primary") },
text: text(theme, "sans", "secondary", { size: "sm" }),
hover: {
text: text(theme, "sans", "active", { size: "sm" }),
},
},
callingIndicator: {
...text(theme, "mono", "muted", { size: "xs" })
},
+14 -1
View File
@@ -1,7 +1,8 @@
import Theme from "../themes/common/theme";
import { backgroundColor, border, popoverShadow } from "./components";
import { backgroundColor, border, borderColor, popoverShadow, text } from "./components";
export default function contactsPopover(theme: Theme) {
const sidePadding = 12;
return {
background: backgroundColor(theme, 300, "base"),
cornerRadius: 6,
@@ -11,5 +12,17 @@ export default function contactsPopover(theme: Theme) {
border: border(theme, "primary"),
width: 300,
height: 400,
inviteRowHeight: 28,
inviteRow: {
padding: {
left: sidePadding,
right: sidePadding,
},
border: { top: true, width: 1, color: borderColor(theme, "primary") },
text: text(theme, "sans", "secondary", { size: "sm" }),
hover: {
text: text(theme, "sans", "active", { size: "sm" }),
},
},
}
}