Skip to content

Commit

Permalink
(feat) O3-2732: Added logic to allow dynamic adjustment of Logo in Na…
Browse files Browse the repository at this point in the history
…vBar (#907)
  • Loading branch information
suubi-joshua authored Apr 17, 2024
1 parent 4ef4c28 commit fec3cbc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ import styles from './logo.scss';

const Logo: React.FC = () => {
const { logo } = useConfig();

return (
<>
{logo?.src ? (
<img className={styles.logo} src={interpolateUrl(logo.src)} alt={logo.alt} width={110} height={40} />
<img
className={styles.logo}
src={interpolateUrl(logo.src)}
alt={logo.alt}
/>
) : logo?.name ? (
logo.name
) : (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
.logo {
display: flex;
align-items: center;
width: auto;
max-width: 300px;
height: 40px;
overflow: hidden;
position: relative;
object-fit: cover;
object-position: left;
}

0 comments on commit fec3cbc

Please sign in to comment.