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

static/css/additional-styles.css: disable line wrapping in <code> #356

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

internet-catte
Copy link
Contributor

before:
image

after:
image

Copy link
Member

@TheDaemoness TheDaemoness left a comment

Choose a reason for hiding this comment

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

🎉

@swantzter
Copy link
Member

I think we originally did this and had some major issues with very long codes that overflowed in the x direction

@swantzter
Copy link
Member

Try the first bulletpoint /msg NickServ IDENTIFY... on https://libera.chat/guides/channels with a narrow screen for this

@@ -35,6 +35,7 @@ code, pre, kbd {
code, kbd {
padding: .1rem .3rem;
border: 1px solid var(--c-border);
white-space: nowrap;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
white-space: nowrap;
}
code::before {
content: '\00200B';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this doesn't appear to work, it only removes the space before the <code>

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.

3 participants