Conversation

dpschen

Summary

Add width and height attribute.
This fixes jumping of the SVG for loading for slow connections.

Here is a video showing this behavior for the zod documentation:

Screen.Recording.2023-02-17.at.14.55.08.mp4

This adds width and height attributes to the corner svg so that the intrinsic size is defined. See also https://web.dev/optimize-cls/#modern-best-practice. This does not prevent overwriting the size via CSS later so it shouldn't break any user CSS.

What kind of change does this PR introduce?

Bugfix

For any code change,

  • Related documentation has been updated if needed
  • Related tests have been updated or tests have been added

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue, if any:

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE

Add width and height attribute.
This fixes jumping of the SVG for loading for slow connections.
@vercel

The latest updates on your projects. Learn more about Vercel for Git ↗︎

NameStatusPreviewCommentsUpdated (UTC)
docsify-preview✅ Ready (Inspect)Visit Preview💬 Add feedbackJul 9, 2023 9:13pm

@codesandbox-ci

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 43e3109:

SandboxSource
docsify-templateConfiguration

@Koooooo-7Koooooo-7 added the ui/uxrelated to user interface and/or user experience of docsifylabel Feb 20, 2023
@Koooooo-7Koooooo-7 requested a review from a team February 20, 2023 10:46
@trusktr

Tests are not running for some reason.

@trusktrtrusktr changed the base branch from develop to main July 9, 2023 21:12
@trusktrtrusktr changed the base branch from main to develop July 9, 2023 21:13
@trusktr

Changing bases to main and back to develop fixed it (same issue I've had in other projects, changing base always works).

@trusktr

This will conflict with

We'll merge that one first.

Sign up for free to join this conversation on . Already have an account? Sign in to comment
ui/uxrelated to user interface and/or user experience of docsify
None yet

Successfully merging this pull request may close these issues.