atmosphere explorer pds.ls
tool typescript atproto

preserve whitespace in lexicon descriptions

handle.invalid 98171897 72347c54

verified
+15 -7
+15 -7
src/components/lexicon-schema.tsx
··· 318 <ConstraintsList property={props.property.items!} /> 319 </Show> 320 <Show when={props.property.description && !props.hideNameType}> 321 - <p class="text-sm wrap-break-word text-neutral-700 dark:text-neutral-300"> 322 {props.property.description} 323 </p> 324 </Show> ··· 475 const hasDefContent = () => props.def.refs || props.def.items || hasConstraints(props.def); 476 477 return ( 478 - <div class="flex flex-col gap-3 scroll-mt-4" id={`def-${props.name}`}> 479 <div class="group flex items-center gap-2"> 480 <a href={`#schema:${props.name}`} class="relative text-lg font-semibold hover:underline"> 481 <span class="iconify lucide--link absolute top-1/2 -left-6 -translate-y-1/2 text-base opacity-0 transition-opacity group-hover:opacity-100" /> ··· 487 </div> 488 489 <Show when={props.def.description}> 490 - <p class="text-sm text-neutral-700 dark:text-neutral-300">{props.def.description}</p> 491 </Show> 492 493 {/* Record key */} ··· 533 <span class="text-xs font-semibold text-neutral-500 uppercase dark:text-neutral-400"> 534 Detail 535 </span> 536 - <p class="text-sm text-neutral-700 dark:text-neutral-300">{props.def.detail}</p> 537 </div> 538 </Show> 539 <Show when={props.def["detail:lang"]}> ··· 548 <span class="dark:bg-dark-200 w-fit rounded bg-neutral-200/50 px-1.5 py-0.5 font-mono text-xs"> 549 {lang} 550 </span> 551 - <p class="text-neutral-700 dark:text-neutral-300">{text}</p> 552 </div> 553 )} 554 </For> ··· 659 <div class="flex flex-col gap-1 py-2"> 660 <div class="font-semibold">{error.name}</div> 661 <Show when={error.description}> 662 - <p class="text-sm text-neutral-700 dark:text-neutral-300"> 663 {error.description} 664 </p> 665 </Show> ··· 731 </span> 732 </div> 733 <Show when={props.schema.description}> 734 - <p class="text-sm text-neutral-700 dark:text-neutral-300">{props.schema.description}</p> 735 </Show> 736 </div> 737
··· 318 <ConstraintsList property={props.property.items!} /> 319 </Show> 320 <Show when={props.property.description && !props.hideNameType}> 321 + <p class="text-sm wrap-break-word whitespace-pre-wrap text-neutral-700 dark:text-neutral-300"> 322 {props.property.description} 323 </p> 324 </Show> ··· 475 const hasDefContent = () => props.def.refs || props.def.items || hasConstraints(props.def); 476 477 return ( 478 + <div class="flex scroll-mt-4 flex-col gap-3" id={`def-${props.name}`}> 479 <div class="group flex items-center gap-2"> 480 <a href={`#schema:${props.name}`} class="relative text-lg font-semibold hover:underline"> 481 <span class="iconify lucide--link absolute top-1/2 -left-6 -translate-y-1/2 text-base opacity-0 transition-opacity group-hover:opacity-100" /> ··· 487 </div> 488 489 <Show when={props.def.description}> 490 + <p class="text-sm whitespace-pre-wrap text-neutral-700 dark:text-neutral-300"> 491 + {props.def.description} 492 + </p> 493 </Show> 494 495 {/* Record key */} ··· 535 <span class="text-xs font-semibold text-neutral-500 uppercase dark:text-neutral-400"> 536 Detail 537 </span> 538 + <p class="text-sm whitespace-pre-wrap text-neutral-700 dark:text-neutral-300"> 539 + {props.def.detail} 540 + </p> 541 </div> 542 </Show> 543 <Show when={props.def["detail:lang"]}> ··· 552 <span class="dark:bg-dark-200 w-fit rounded bg-neutral-200/50 px-1.5 py-0.5 font-mono text-xs"> 553 {lang} 554 </span> 555 + <p class="whitespace-pre-wrap text-neutral-700 dark:text-neutral-300"> 556 + {text} 557 + </p> 558 </div> 559 )} 560 </For> ··· 665 <div class="flex flex-col gap-1 py-2"> 666 <div class="font-semibold">{error.name}</div> 667 <Show when={error.description}> 668 + <p class="text-sm whitespace-pre-wrap text-neutral-700 dark:text-neutral-300"> 669 {error.description} 670 </p> 671 </Show> ··· 737 </span> 738 </div> 739 <Show when={props.schema.description}> 740 + <p class="text-sm whitespace-pre-wrap text-neutral-700 dark:text-neutral-300"> 741 + {props.schema.description} 742 + </p> 743 </Show> 744 </div> 745