Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1776 | fixing tooltip width
Browse files Browse the repository at this point in the history
snyaggarwal committed Oct 2, 2024
1 parent 86d56f1 commit c4bd3a3
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/common/HTMLTooltip.jsx
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@ const HTMLTooltip = styled(({ className, ...props }) => (
[`& .${tooltipClasses.tooltip}`]: {
backgroundColor: WHITE,
color: SECONDARY_COLORS.main,
minWidth: 250,
minWidth: 285,
width: 'auto',
maxWidth: 400,
maxWidth: 285,
fontSize: theme.typography.pxToRem(12),
border: '1px solid',
borderColor: SURFACE_COLORS.nv80,
5 changes: 5 additions & 0 deletions src/components/repos/RepoTooltip.jsx
Original file line number Diff line number Diff line change
@@ -86,6 +86,11 @@ const TooltipTitle = ({ repo }) => {
const RepoTooltip = ({ repo, children, spanStyle }) => {
return (
<HTMLTooltip
sx={{
'.MuiTooltip-tooltip': {
maxWidth: 400
}
}}
title={
<React.Fragment>
<TooltipTitle repo={repo} />

0 comments on commit c4bd3a3

Please sign in to comment.