aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
author7PH <benjamin.raymond@sonarsource.com>2023-10-09 14:52:00 +0200
committersonartech <sonartech@sonarsource.com>2023-10-10 20:02:45 +0000
commit35d41265d408ef9401a04a5d89c8e88f426880be (patch)
tree31d6f4771be237bbf9db665f84367920e594ad00 /server/sonar-web
parent335b1b9c0c58f74f3e6b7381b52d97eb03d88b3a (diff)
downloadsonarqube-35d41265d408ef9401a04a5d89c8e88f426880be.tar.gz
sonarqube-35d41265d408ef9401a04a5d89c8e88f426880be.zip
[NO-JIRA] Improve search select styling not to truncate text
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/AssigneeSelect.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsAddModalRenderer.tsx4
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/IssueAssign.tsx2
4 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx b/server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx
index bba4a3623a7..71c64b2a831 100644
--- a/server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx
+++ b/server/sonar-web/design-system/src/components/input/SearchSelectDropdownControl.tsx
@@ -116,7 +116,7 @@ const StyledControl = styled.div`
${tw`sw-px-3`};
${tw`sw-body-sm`};
${tw`sw-h-control`};
- ${tw`sw-leading-4`};
+ ${tw`sw-leading-6`};
${tw`sw-cursor-pointer`};
&.is-discreet {
diff --git a/server/sonar-web/src/main/js/apps/issues/components/AssigneeSelect.tsx b/server/sonar-web/src/main/js/apps/issues/components/AssigneeSelect.tsx
index 56df9ef1fe2..329a99c502b 100644
--- a/server/sonar-web/src/main/js/apps/issues/components/AssigneeSelect.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/components/AssigneeSelect.tsx
@@ -45,7 +45,7 @@ function userToOption(user: RestUser | UserActive) {
return {
value: user.login,
label: isUserActive(user) ? userInfo : translateWithParameters('user.x_deleted', userInfo),
- Icon: <Avatar hash={user.avatar} name={user.name} size="xs" />,
+ Icon: <Avatar hash={user.avatar} name={user.name} size="xs" className="sw-my-1" />,
};
}
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsAddModalRenderer.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsAddModalRenderer.tsx
index bf4200dd188..48a2f5c5167 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsAddModalRenderer.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatePermissionsAddModalRenderer.tsx
@@ -111,7 +111,7 @@ function OptionRenderer({
{isUser(option) ? (
<>
<Avatar
- className={small ? 'sw-my-1/2' : ''}
+ className={small ? 'sw-my-1' : ''}
hash={option.avatar}
name={option.name}
size={small ? 'xs' : 'sm'}
@@ -124,7 +124,7 @@ function OptionRenderer({
) : (
<>
<GenericAvatar
- className={small ? 'sw-my-1/2' : ''}
+ className={small ? 'sw-my-1' : ''}
Icon={UserGroupIcon}
name={option.name}
size={small ? 'xs' : 'sm'}
diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueAssign.tsx b/server/sonar-web/src/main/js/components/issue/components/IssueAssign.tsx
index ca3de9fff1b..dc2dff2d815 100644
--- a/server/sonar-web/src/main/js/components/issue/components/IssueAssign.tsx
+++ b/server/sonar-web/src/main/js/components/issue/components/IssueAssign.tsx
@@ -40,7 +40,7 @@ const minSearchLength = 2;
const UNASSIGNED = { value: '', label: translate('unassigned') };
const renderAvatar = (name?: string, avatar?: string) => (
- <Avatar hash={avatar} name={name} size="xs" />
+ <Avatar hash={avatar} name={name} size="xs" className="sw-my-1" />
);
export default function IssueAssignee(props: Props) {