mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
docs: pre-wrap type code snippet [ci skip]
This commit is contained in:
parent
7457edf60d
commit
81e6c98893
1 changed files with 5 additions and 4 deletions
|
@ -105,10 +105,7 @@
|
|||
{:else if type.startsWith("(")}
|
||||
<code>{type}</code>
|
||||
{:else}
|
||||
<InlineSnippet
|
||||
code="{type}"
|
||||
style="white-space: pre-wrap"
|
||||
/>
|
||||
<InlineSnippet code="{type}" />
|
||||
{/if}
|
||||
</div>
|
||||
{/each}
|
||||
|
@ -224,4 +221,8 @@
|
|||
code {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
:global(.cell .bx--snippet--inline code, .bx--snippet--single pre) {
|
||||
white-space: pre-wrap !important;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue