nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.03k stars 616 forks source link

Styles in official documentation is not correct #2679

Closed kingyue737 closed 1 week ago

kingyue737 commented 4 weeks ago

Environment

ignore

Reproduction

ignore

Describe the bug

Expected:

The code block should be a single rectangle

Screenshot 2024-06-24 120722

In fact:

image

The filename bar and code are separated

Some icons are also missing

image

Additional context

I also faced this issue in my own nuxt project. My workaround is run pnpm run docs:prepare && pnpm run docs:build in deployment instead of pnpm run docs:build alone.

Logs

No response

owljackob commented 4 weeks ago

Seems to be related to the recent upgrade of dependencies.

kingyue737 commented 1 week ago

Let's track this issue here https://github.com/nuxt-modules/tailwindcss/issues/855

benjamincanac commented 1 week ago

It's fixed! 😊 Adding a postinstall script doing nuxt prepare did the trick.