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 missing line breaks for crate name and refine sidebar layout #3600

Merged
merged 2 commits into from May 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/components/crate-header.module.css
Expand Up @@ -17,6 +17,10 @@
padding: 0;
}

h1 {
word-break: break-word;
}

h2 {
color: var(--main-color-light);
margin-left: 10px;
Expand Down
1 change: 1 addition & 0 deletions app/components/crate-row.module.css
Expand Up @@ -22,6 +22,7 @@
font-weight: bold;
text-decoration: none;
font-size: 120%;
overflow-wrap: break-word;
}

.version {
Expand Down
8 changes: 7 additions & 1 deletion app/components/crate-sidebar.module.css
Expand Up @@ -15,7 +15,7 @@
}
}

@media only screen and (max-width: 480px) {
@media only screen and (max-width: 890px) {
.top, .bottom {
flex-direction: column;
}
Expand Down Expand Up @@ -71,6 +71,12 @@
background: transparent;
border-radius: 5px;
border: solid 2px var(--gray-border);

span {
flex: auto;
display: block;
word-break: break-word;
}
}

.copy-button {
Expand Down
1 change: 1 addition & 0 deletions app/styles/crate/version.module.css
Expand Up @@ -39,6 +39,7 @@
text-align: center;
font-size: 20px;
font-weight: 300;
overflow-wrap: break-word;

code {
font-size: 18px;
Expand Down