Space out tooltip a little bit to ensure it doesn't overlap cursor

This commit is contained in:
Antonio Scandurra 2022-06-01 10:08:25 +02:00
parent 238827642a
commit b63d965b46

View file

@ -6,6 +6,7 @@ export default function tooltip(theme: Theme) {
background: backgroundColor(theme, 500), background: backgroundColor(theme, 500),
border: border(theme, "primary"), border: border(theme, "primary"),
padding: 6, padding: 6,
margin: { top: 8, left: 8 },
shadow: shadow(theme), shadow: shadow(theme),
cornerRadius: 6, cornerRadius: 6,
...text(theme, "sans", "primary", { size: "xs" }) ...text(theme, "sans", "primary", { size: "xs" })