Closed enzonotario closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vitepress-openapi | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 8, 2024 11:47pm |
The changes involve a modification to the class attribute of a <code>
element in the OASchemaPropertyAttributes.vue
Vue component. The class was updated to enhance the styling of the code block when displaying array properties, allowing for text wrapping and breaking. The overall structure and logic of the template remain unchanged, maintaining the same functionality for rendering properties based on their type.
File | Change Summary |
---|---|
src/components/Schema/OASchemaPropertyAttributes.vue | Updated class attribute of <code> element from class="!text-xs" to class="!text-xs text-wrap break-all" for improved text presentation. |
sequenceDiagram
participant User
participant VueComponent
participant CodeBlock
User->>VueComponent: Requests property display
VueComponent->>CodeBlock: Renders property
Note right of CodeBlock: If property is an array
CodeBlock-->>User: Displays code with updated styling
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
pnpm add https://pkg.pr.new/vitepress-openapi@77
pnpm add https://pkg.pr.new/vitepress-openapi@77
commit: 6c548d6
Description
Wraps the text inside
code
, to avoid overflow.Before:
After:
Related issues/external references
Types of changes