aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projects
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2021-06-25 18:15:26 +0200
committersonartech <sonartech@sonarsource.com>2021-06-28 20:03:21 +0000
commit205dba501eb14aae28504b71b22a7a002bd78778 (patch)
treec63ca2bf0ed1f6f7968c4fa3c4cadcc3cef583f0 /server/sonar-web/src/main/js/apps/projects
parent52e89eb6c3a1669623403f01ba5ca0338fb6a257 (diff)
downloadsonarqube-205dba501eb14aae28504b71b22a7a002bd78778.tar.gz
sonarqube-205dba501eb14aae28504b71b22a7a002bd78778.zip
SONAR-14943 Vertical center the ellipsis icon
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects')
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenu.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenu-test.tsx.snap4
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenu.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenu.tsx
index a2677ae4de8..3b1c420744f 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenu.tsx
+++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenu.tsx
@@ -22,10 +22,10 @@ import { Link } from 'react-router';
import { Button } from 'sonar-ui-common/components/controls/buttons';
import Dropdown from 'sonar-ui-common/components/controls/Dropdown';
import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon';
+import EllipsisIcon from 'sonar-ui-common/components/icons/EllipsisIcon';
import { translate } from 'sonar-ui-common/helpers/l10n';
import { getAlmSettings } from '../../../api/alm-settings';
import { withCurrentUser } from '../../../components/hoc/withCurrentUser';
-import EllipsisIcon from '../../../components/icons/EllipsisIcon';
import { IMPORT_COMPATIBLE_ALMS, IMPORT_COMPATIBLE_ALM_COUNT } from '../../../helpers/constants';
import { hasGlobalPermission } from '../../../helpers/users';
import { AlmKeys, AlmSettingsInstance } from '../../../types/alm-settings';
@@ -126,7 +126,7 @@ export class ProjectCreationMenu extends React.PureComponent<Props, State> {
{boundAlms.length < IMPORT_COMPATIBLE_ALM_COUNT && (
<li className="bordered-top little-padded-top">
<Link className="display-flex-center" to={{ pathname: '/projects/create' }}>
- <EllipsisIcon width={16} className="big spacer-right" />
+ <EllipsisIcon className="spacer-right" size={16} />
{translate('more')}
</Link>
</li>
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenu-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenu-test.tsx.snap
index f5ed0aa061f..01db864b088 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenu-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenu-test.tsx.snap
@@ -28,8 +28,8 @@ exports[`should render correctly: default 1`] = `
}
>
<EllipsisIcon
- className="big spacer-right"
- width={16}
+ className="spacer-right"
+ size={16}
/>
more
</Link>