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(client): reduce pre/code font-size #7676

Merged
merged 1 commit into from Dec 1, 2022
Merged

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Nov 25, 2022

Summary

Fixes #5875.

Problem

Our layout prevents us from fitting 80 characters into one line of a code block.

Solution

Reduce the font-size.

Note: Before #7131, code blocks were already using a smaller default font in Chrome,


Screenshots

Before

image

After

image


How did you test this change?

Ran yarn dev, then opened http://localhost:3000/en-US/docs/Web/CSS/CSS_Counter_Styles/Using_CSS_counters#basic_example locally and compared it to https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Counter_Styles/Using_CSS_counters#basic_example.

@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added the merge conflicts 🚧 Please rebase onto or merge the latest main. label Nov 29, 2022
Allows to fit 80 characters in one line.
@caugner caugner marked this pull request as ready for review November 29, 2022 19:42
@github-actions github-actions bot removed the merge conflicts 🚧 Please rebase onto or merge the latest main. label Nov 29, 2022
Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fiji-flo fiji-flo merged commit a7f9de0 into main Dec 1, 2022
@fiji-flo fiji-flo deleted the reduce-code-font-size branch December 1, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase width of content column to fit 80 characters in example code
2 participants