mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
UI: org logo bug fix (#11018)
This commit is contained in:
parent
fac6cd8b4d
commit
40c540a1cc
4 changed files with 10 additions and 3 deletions
1
changes/10981-org-logo-clickable-outside-nav
Normal file
1
changes/10981-org-logo-clickable-outside-nav
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Fixed a bug where for certain org logos, the user could still click on it even outside the navbar
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,6 @@
|
|||
align-items: center;
|
||||
min-width: 64px;
|
||||
max-width: 140px;
|
||||
transform: scale(0.5);
|
||||
}
|
||||
|
||||
&--active {
|
||||
|
|
|
|||
Loading…
Reference in a new issue