Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mohan - Finishing for Vedant - Fix assign team button hover at smaller resolutions #2708

37 changes: 23 additions & 14 deletions src/components/UserProfile/TeamsAndProjects/UserTeamsTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const UserTeamsTable = props => {
target="teamCodeAssign"
toggle={toggleTeamCodeExplainTooltip}
>
This team code should only used by admin/owner, and has nothing to do with
This team code should only be used by admin/owner, and has nothing to do with
the team data model.
</Tooltip>
</>
Expand Down Expand Up @@ -368,25 +368,34 @@ const UserTeamsTable = props => {
</Col>
</div>
{props.edit && props.role && (
<Col
md="12"
style={{ padding: '0' }}
>
<Col md="12" style={{ padding: '0' }}>
{canAssignTeamToUsers ? (
props.disabled ? (
<Button className="btn-addteam" color="primary" style={boxStyle} disabled>
Assign Team
</Button>
) : (
<Button
className="btn-addteam"
color="primary"
onClick={() => {
props.onButtonClick();
}}
>
Assign Team
</Button>
<>
<Button
id="teamCodeAssign"
className="btn-addteam"
color="primary"
onClick={() => {
props.onButtonClick();
}}
>
Assign Team
</Button>
<Tooltip
placement="top" // Adjust the placement as needed
isOpen={teamCodeExplainTooltip}
target="teamCodeAssign"
toggle={toggleTeamCodeExplainTooltip}
>
This team code should only be used by admin/owner, and has nothing to do with
the team data model.
</Tooltip>
</>
)
) : (
<></>
Expand Down