michael-s-molina commented on code in PR #21952:
URL: https://github.com/apache/superset/pull/21952#discussion_r1006931833
##########
superset-frontend/src/components/MetadataBar/MetadataBar.tsx:
##########
@@ -149,7 +149,10 @@ const Item = ({
</StyledItem>
);
return isTruncated || collapsed || (tooltip && tooltip !== title) ? (
- <Tooltip title={<TootipContent>{tooltip}</TootipContent>}>
+ <Tooltip
+ placement="bottom"
Review Comment:
@kgabryje I'm not sure if we should set this in the component itself. The
original behavior follows the one defined in Ant Design that automatically
repositions the tooltip depending on the available space and tooltip content.
We may have cases where the user scrolls down and the tooltip will need to be
displayed on top. If you want to ensure that in Explore the tooltip is always
displayed at the bottom, then I suggest adding an optional property to the
`MetadataBar` called `tooltipPlacement` and forwarding it to the `Tooltip`
component.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]