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

Identifiers with slashes / solidi can end up across multiple lines #216

Closed
sogaiu opened this issue Feb 28, 2024 · 1 comment
Closed

Identifiers with slashes / solidi can end up across multiple lines #216

sogaiu opened this issue Feb 28, 2024 · 1 comment

Comments

@sogaiu
Copy link
Contributor

sogaiu commented Feb 28, 2024

It appears that an identifier like ev/call (i.e. one that contains a slash or solidus) can end up split across two lines depending on the size of one's browser window. So for ev/call, at the end of one line I would see ev/ and at the beginning of the next line I'd see call.

Here, this can be observed by visiting the event loop page, maximizing the window, and scrolling down, looking at the right edge of the main text. Depending on one's setup, I suppose this may or may not lead to a reproduction.

One thing that seems to help with this is making the following change to main.css:

diff --git a/static/css/main.css b/static/css/main.css
index c564f84..8c92614 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -255,6 +255,7 @@ code {
 .mendoza-code {
     padding: 0 5px;
     background: #EEE;
+    white-space: nowrap;
 }
 
 .mendoza-codeblock {

Not sure if that's an appropriate change, but will make a PR.

@sogaiu
Copy link
Contributor Author

sogaiu commented Jun 6, 2024

Closing as #217 has been merged.

@sogaiu sogaiu closed this as completed Jun 6, 2024
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

No branches or pull requests

1 participant