UI: org logo bug fix (#11018)

This commit is contained in:
Jacob Shandling 2023-04-06 13:12:41 -07:00 committed by GitHub
parent fac6cd8b4d
commit 40c540a1cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View file

@ -0,0 +1 @@
- Fixed a bug where for certain org logos, the user could still click on it even outside the navbar

View file

@ -72,7 +72,10 @@ class OrgLogoIcon extends Component {
const { imageSrc } = this.state;
const { onError } = this;
const classNames = classnames(baseClass, className);
const classNames =
imageSrc === fleetAvatar
? classnames(baseClass, className, "default-fleet-logo")
: classnames(baseClass, className);
return (
<img

View file

@ -1,4 +1,8 @@
.org-logo-icon {
// ensures consistant nav bar height regardless of the logo image used
max-height: 92px;
max-height: 46px;
}
.default-fleet-logo {
transform: scale(0.5);
}

View file

@ -84,7 +84,6 @@
align-items: center;
min-width: 64px;
max-width: 140px;
transform: scale(0.5);
}
&--active {