From 81e6c98893ddf3f563715fe5b331932c9aaf3b5a Mon Sep 17 00:00:00 2001 From: Eric Y Liu Date: Sat, 10 Jul 2021 15:51:30 -0700 Subject: [PATCH] docs: pre-wrap type code snippet [ci skip] --- docs/src/components/ComponentApi.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/src/components/ComponentApi.svelte b/docs/src/components/ComponentApi.svelte index 1cda3901..05a491d1 100644 --- a/docs/src/components/ComponentApi.svelte +++ b/docs/src/components/ComponentApi.svelte @@ -105,10 +105,7 @@ {:else if type.startsWith("(")} {type} {:else} - + {/if} {/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; + }