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("(")}
|
{:else if type.startsWith("(")}
|
||||||
<code>{type}</code>
|
<code>{type}</code>
|
||||||
{:else}
|
{:else}
|
||||||
<InlineSnippet
|
<InlineSnippet code="{type}" />
|
||||||
code="{type}"
|
|
||||||
style="white-space: pre-wrap"
|
|
||||||
/>
|
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -224,4 +221,8 @@
|
||||||
code {
|
code {
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:global(.cell .bx--snippet--inline code, .bx--snippet--single pre) {
|
||||||
|
white-space: pre-wrap !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue