Skip to content

Commit

Permalink
fix: GitHub icon invisible on smaller screens (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriDevAT authored Oct 19, 2022
1 parent 2930b9c commit 6078288
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ code {
width: 38px;
}

@media (max-width: 348px) {
.MenuItem__logo span {
display: none;
}
}

[role='menubar'] .OptionsMenu__list {
width: 140px;
top: calc(var(--top-bar-height) - 6px);
Expand Down
4 changes: 2 additions & 2 deletions docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ const App = () => {
</TopBarTrigger>
<TopBarItem>
<Link to="/" className="MenuItem__logo" tabIndex={-1}>
<img src={theme === 'dark' ? logo : darkLogo} alt="" />{' '}
<span>Cauldron</span>
<img src={theme === 'dark' ? logo : darkLogo} alt="Cauldron" />{' '}
<span aria-hidden="true">Cauldron</span>
</Link>
</TopBarItem>

Expand Down

0 comments on commit 6078288

Please sign in to comment.