Skip to content

Commit

Permalink
Change the logo wrapper from inline to block
Browse files Browse the repository at this point in the history
This is my proposal to fix the issue that a logo with SVG image won't be centered vertically properly as described in vercel/swr-site#71
  • Loading branch information
Thien Do authored Jan 27, 2021
1 parent 1adf1c7 commit 35f1608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextra-theme-docs/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const Layout = ({ filename, config: _config, pageMap, meta, children }) => {
<nav className="flex items-center bg-white z-20 fixed top-0 left-0 right-0 h-16 border-b border-gray-200 px-6 dark:bg-dark dark:border-gray-900">
<div className="hidden md:block w-full flex items-center">
<Link href="/">
<a className="no-underline text-current inline-flex items-center hover:opacity-75">
<a className="no-underline text-current flex items-center hover:opacity-75">
{renderComponent(config.logo, { locale })}
</a>
</Link>
Expand Down

0 comments on commit 35f1608

Please sign in to comment.