Make tooltips look more like Element Web's
The only thing they're missing now is animated fading.
This commit is contained in:
parent
47f7e0e5a0
commit
d90a837714
2 changed files with 4 additions and 2 deletions
|
|
@ -3,10 +3,12 @@
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 8px 10px;
|
padding: 10px;
|
||||||
color: var(--primary-content);
|
color: var(--primary-content);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
max-width: 135px;
|
max-width: 135px;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 500;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ export const TooltipTrigger = forwardRef<HTMLElement, TooltipTriggerProps>(
|
||||||
targetRef: triggerRef,
|
targetRef: triggerRef,
|
||||||
overlayRef,
|
overlayRef,
|
||||||
isOpen: tooltipState.isOpen,
|
isOpen: tooltipState.isOpen,
|
||||||
offset: 5,
|
offset: 12,
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue