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

Docs rendering weird, text vertical #488

Closed
Andrewp2 opened this issue Jan 26, 2024 · 6 comments
Closed

Docs rendering weird, text vertical #488

Andrewp2 opened this issue Jan 26, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Andrewp2
Copy link

Describe the bug

Text is vertical

image

To Reproduce

  1. Go to here https://docs.rs/async-stripe/latest/stripe/index.html
  2. Webpage looks weird

Expected behavior

Text should be horizontal

Code snippets

No response

OS

Windows

Rust version

N/A

Library version

async-stripe 0.31.0

API version

2023-10-16

Additional context

No response

@Andrewp2 Andrewp2 added the bug Something isn't working label Jan 26, 2024
@Andrewp2
Copy link
Author

Disabling overflow-wrap: break-word; or display: table-row; seems to fix the issue on the doc

@Andrewp2
Copy link
Author

It seems like somewhat of a tough situation, the docs are this way do to some exceptionally long type names PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorization which we don't have a huge amount of control over, we can modify the CSS using --extend-css when using rustdoc but I don't know if docs.rs has a way to do that.

@arlyon
Copy link
Owner

arlyon commented Jan 27, 2024

On mobile they wrap correctly so it seems like one of rustdoc's media queries for desktop is not built ideally. I don't want to do anything regarding trying to collapse the names as we use the types verbatim from stripe so my best suggestion is we open an issue with rustdoc. If you'd like to open one please link back to this issue.

I'll investigate overriding css on docs.rs in the meantime.

@pati08
Copy link

pati08 commented Feb 11, 2024

For now, here's a quick bookmarklet that will make it readable:

javascript:(function() {     var style = document.createElement('style');     style.type = 'text/css';     style.innerHTML = '.item-table > li > div { display: inherit !important; }';     document.head.appendChild(style); })();

@arlyon
Copy link
Owner

arlyon commented Feb 12, 2024

Thanks for opening that issue and the owrkaround.

@arlyon
Copy link
Owner

arlyon commented Feb 20, 2024

I think I will close this issue, since there is not much more we can do here. Thanks again for opening another ticket upstream.

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

No branches or pull requests

3 participants