Skip to content

Commit

Permalink
Correct bug in dropdown rendering
Browse files Browse the repository at this point in the history
Limit the insertion of horizontal padding to the specific case which
requires it.
  • Loading branch information
jugglinmike committed Dec 11, 2023
1 parent 2e62661 commit 7ec06d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
line-height: 2;
}

.not-assigned {
.not-assigned.human {
padding-left: 1.5em;
}

Expand Down
7 changes: 4 additions & 3 deletions client/components/TestQueue/AssignTesterDropdown/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ const AssignTesterDropdown = ({
const testerIsAssigned = isTesterAssigned(
tester.username
);
let classname = testerIsAssigned
? 'assigned'
: 'not-assigned';
const classname = [
testerIsAssigned ? 'assigned' : 'not-assigned',
isBot(tester) ? 'bot' : 'human',
].join(' ');
let icon;
if (isBot(tester)) {
const supportedByBot =
Expand Down

0 comments on commit 7ec06d0

Please sign in to comment.