Merge pull request #607 from robintown/tooltip-style

Make tooltips look more like Element Web's
This commit is contained in:
Robin 2022-09-27 07:54:14 -04:00 committed by GitHub
commit 90e32af220
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -3,10 +3,12 @@
flex-direction: row;
justify-content: center;
align-items: center;
padding: 8px 10px;
padding: 10px;
color: var(--primary-content);
border-radius: 8px;
max-width: 135px;
width: max-content;
font-size: 12px;
font-weight: 500;
text-align: center;
}

View file

@ -86,7 +86,7 @@ export const TooltipTrigger = forwardRef<HTMLElement, TooltipTriggerProps>(
targetRef: triggerRef,
overlayRef,
isOpen: tooltipState.isOpen,
offset: 5,
offset: 12,
});
return (