Skip to content

Commit

Permalink
add tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDarsa committed Jul 1, 2024
1 parent 5e83df0 commit 1316d68
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
35 changes: 33 additions & 2 deletions src/components/Organizations/NewProject/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,24 @@ const OrgNewProject = ({

<div className="form-box spacetop">
<label>
Branches
Branches{' '}
<Tooltip
overlayClassName="orgTooltip lg"
title={
<>
<p> Which Pull Requests should be deployed, can be one of::</p>
<p> - true - all branches are deployed </p>
<p>- false - no branches are deployed</p>
<p>
- regex of all branches that can be deployed (including production), example:
'^(main|staging)$'
</p>
</>
}
placement="right"
>
<InfoCircleOutlined style={{ fontSize: '1rem' }} />
</Tooltip>
<input
type="text"
placeholder="Branches"
Expand All @@ -194,7 +211,21 @@ const OrgNewProject = ({

<div className="form-box">
<label>
Pull requests
Pull requests{' '}
<Tooltip
overlayClassName="orgTooltip lg"
title={
<>
<p> Which branches should be deployed, can be one of:</p>
<p> - true - all pull requests are deployed </p>
<p> - false - no pull requests are deployed</p>
<p>- regex of all Pull Request titles that can be deployed, example: '[BUILD]'</p>
</>
}
placement="right"
>
<InfoCircleOutlined style={{ fontSize: '1rem' }} />
</Tooltip>
<input
placeholder="Pull requests"
type="text"
Expand Down
6 changes: 6 additions & 0 deletions src/layouts/GlobalStyles/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ body {
color: ${props => (props.theme.colorScheme === 'dark' ? '#000' : '#fff')};
background: ${props => (props.theme.colorScheme === 'dark' ? '#fff' : '#000')};
}
&.lg{
.ant-tooltip-content{
width:max-content;
}
}
}
.componentTooltip {
.ant-tooltip-arrow:before{
Expand Down

0 comments on commit 1316d68

Please sign in to comment.