Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Enable line break in "Example" section of the LeetCode preview pages #342

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

Closed
ysyshtc opened this issue Jun 8, 2019 · 3 comments · Fixed by #359
Closed

Enable line break in "Example" section of the LeetCode preview pages #342

ysyshtc opened this issue Jun 8, 2019 · 3 comments · Fixed by #359
Labels
bug Something isn't working
Milestone

Comments

@ysyshtc
Copy link

ysyshtc commented Jun 8, 2019

🚀 Feature Proposal

For some LeetCode problems, such as 190. Reverse Bits, due to the long explanation in "example" section, the rendered webpage is not so user friendly currently. It seems reasonable to have line break there or at least make an enable switch.

Motivation

Improve the user experience of preview page.

@jdneo jdneo added the enhancement New feature or request label Jun 8, 2019
@jdneo
Copy link
Member

jdneo commented Jun 10, 2019

My solution is to add

code { 
    white-space: pre-wrap; 
}

into the stylesheet. Works fine so far.

Does anyone know if there is any problem which has code snippets in its description?

@jdneo jdneo modified the milestone: 0.15.1 Jun 10, 2019
@ysyshtc
Copy link
Author

ysyshtc commented Jun 27, 2019

@jdneo any update?

@jdneo
Copy link
Member

jdneo commented Jun 28, 2019

@ysyshtc The solution I provided works fine. But I want to know if there is any problem which contains code snippets in its description to see the style.

It would be great if you can help me to confirm if there is any that kind of problem.

@jdneo jdneo added the help wanted Extra attention is needed label Jun 28, 2019
@jdneo jdneo added this to the 0.15.2 milestone Jun 28, 2019
@jdneo jdneo added bug Something isn't working and removed enhancement New feature or request help wanted Extra attention is needed labels Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants