fix(ui): Fixed CodeBlock line number width (#5640)
**What** - Fixes the width of lineNumbers in the CodeBlock component according to the widest number. - Introduces a new prop on snippets that allows users to hide the copy button. Also updated docs to reflect this. Before:  After: <img width="742" alt="image" src="https://github.com/medusajs/medusa/assets/45367945/5ce845f7-b8c7-411c-abfb-fa03448aeb1a"> Closes #5639
This commit is contained in:
committed by
GitHub
parent
95aa5a2d28
commit
a67a8e7e90
5
.changeset/fast-glasses-grow.md
Normal file
5
.changeset/fast-glasses-grow.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/ui": patch
|
||||
---
|
||||
|
||||
fix(ui): Fix the width of line numbers in the CodeBlock component, such that they are always the same width as the widest line number.
|
||||
Reference in New Issue
Block a user