|
@@ -24,13 +24,14 @@ export function GroupPreviewHovercard({
|
|
|
|
|
|
// No need to preview on hover for small devices
|
|
// No need to preview on hover for small devices
|
|
const shouldNotPreview = useMedia(`(max-width: ${theme.breakpoints.large})`);
|
|
const shouldNotPreview = useMedia(`(max-width: ${theme.breakpoints.large})`);
|
|
|
|
+ const shouldShowPositionTop = useMedia(`(max-width: ${theme.breakpoints.xlarge})`);
|
|
|
|
|
|
return (
|
|
return (
|
|
<StyledHovercardWithBodyClass
|
|
<StyledHovercardWithBodyClass
|
|
className={className}
|
|
className={className}
|
|
displayTimeout={200}
|
|
displayTimeout={200}
|
|
delay={100}
|
|
delay={100}
|
|
- position="right"
|
|
|
|
|
|
+ position={shouldShowPositionTop ? 'top' : 'right'}
|
|
tipBorderColor="border"
|
|
tipBorderColor="border"
|
|
tipColor="background"
|
|
tipColor="background"
|
|
hide={shouldNotPreview || hide}
|
|
hide={shouldNotPreview || hide}
|