Skip to content

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

Open
internet-catte wants to merge 1 commit intomainfrom
catte/code-wrap
Open

static/css/additional-styles.css: disable line wrapping in <code>#356
internet-catte wants to merge 1 commit intomainfrom
catte/code-wrap

Conversation

@internet-catte
Copy link
Copy Markdown
Contributor

before:
image

after:
image

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

code, kbd {
padding: .1rem .3rem;
border: 1px solid var(--c-border);
white-space: nowrap;
Copy link
Copy Markdown
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
Copy Markdown
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