diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx index 5c4f5e8dd7..fad0080f8e 100644 --- a/web/apps/photos/src/pages/shared-albums.tsx +++ b/web/apps/photos/src/pages/shared-albums.tsx @@ -585,7 +585,7 @@ const SharedAlbumNavbar: React.FC = ({ - + {onAddPhotos ? : } @@ -594,7 +594,7 @@ const SharedAlbumNavbar: React.FC = ({ const EnteLogoLink = styled("a")(({ theme }) => ({ // Remove the excess space at the top. - svg: { verticalAlign: "bottom" }, + svg: { verticalAlign: "middle" }, color: theme.colors.text.base, ":hover": { color: theme.palette.accent.main, diff --git a/web/packages/base/components/EnteLogo.tsx b/web/packages/base/components/EnteLogo.tsx index c9f315c6d4..fa2427f3d6 100644 --- a/web/packages/base/components/EnteLogo.tsx +++ b/web/packages/base/components/EnteLogo.tsx @@ -39,20 +39,22 @@ const LogoImage = styled("img")` * The Ente logo ("ente" in Montserrat), as an inline svg. * * Having it as an inline SVG has two advantages: + * * - It does not rely on a corresponding asset in the public folder * - It can be styled using CSS. * - * The default size of the SVG element is 50px x 26px, and can be overridden by - * providing {@link width} and {@link height} props. + * The default height of the SVG element is 18px, same as the {@link EnteLogo} + * img (Unlike the img, it does not have any extra margin). + * + * The size can be customized by providing a {@link height} prop (the SVG will + * preserve its aspect ratio when fitting inside the provided viewport). */ -export const EnteLogoSVG: React.FC> = (props) => ( +export const EnteLogoSVG: React.FC = ({ height }) => (