mirror of
https://github.com/zhigang1992/react.git
synced 2026-02-07 17:19:15 +08:00
Merge pull request #204 from unix/tooltip
fix(tooltip): fix autowrap errors for elements wrapped by tooltip
This commit is contained in:
@@ -9,6 +9,7 @@ exports[`Popover should render react-node 1`] = `
|
||||
</style><style>
|
||||
.tooltip {
|
||||
width: max-content;
|
||||
display: inline-block;
|
||||
}
|
||||
</style></div>"
|
||||
`;
|
||||
@@ -22,6 +23,7 @@ exports[`Popover should work with different placement 1`] = `
|
||||
</style><style>
|
||||
.tooltip {
|
||||
width: max-content;
|
||||
display: inline-block;
|
||||
}
|
||||
</style></div>"
|
||||
`;
|
||||
|
||||
@@ -110,6 +110,7 @@ const Tooltip: React.FC<React.PropsWithChildren<TooltipProps>> = ({
|
||||
<style jsx>{`
|
||||
.tooltip {
|
||||
width: max-content;
|
||||
display: inline-block;
|
||||
}
|
||||
`}</style>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user