Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: responsive versioned dropdown #3292

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion docs/src/components/VersionDropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,31 @@
cursor: pointer;
padding: 5px 10px;
font-size: 1rem;
font-family: 'Monospace', 'Roboto', 'Open Sans', 'Lato', 'Courier New', monospace;
width: fit-content;
font-weight: bold;
text-align: center;
}

.version_dropdown option {
font-weight: normal; /* Keeps options normal weight */
}

@media (max-width: 996px) {
.navbar__items--right .version_dropdown {
display: none;
}

.version_dropdown {
display: flex;
flex-direction: column;
order: -1;
width: fit-content;
margin: 10px 0px 10px 10px;
}

.menu__list {
display: flex;
flex-direction: column;
}

}
1 change: 1 addition & 0 deletions docs/src/components/VersionDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function VersionDropdown() {
className="version_dropdown"
onChange={handleVersionChange}
value={currentVersion}
title={`${currentVersion}`}
>
{versions.map(version => (
<option key={version.version} value={version.version}>
Expand Down
Loading