- Make sure the field exists before trying to show it

- Adjust spacing for table data to not overflow it
This commit is contained in:
denihs
2024-09-11 11:41:47 -04:00
parent e89a68af8b
commit f19a11d769

View File

@@ -67,7 +67,7 @@ const sourceCode = `https://github.com/meteor/meteor/blob/devel/packages/${props
<td>{{ showTypes(param.type.names) }}</td>
<template v-if="param.name === 'options'">
<td>
<span v-html="param.description"></span>
<span v-if="param.description" v-html="param.description"></span>
<button v-if="(props.options?.length || -1) > 0" type="button" @click="toggleOptionsTable">
{{ isOptionsTableOpen ? "Close" : "Open" }} options table
<Caret :is-open="isOptionsTableOpen" />
@@ -110,6 +110,9 @@ const sourceCode = `https://github.com/meteor/meteor/blob/devel/packages/${props
table {
text-align: center;
}
table td {
padding: 6px 12px;
}
.options-table {
--easing-dur: calc(var(--vc-auto-duration) * 1.5) cubic-bezier(0.33, 1, 0.68, 1);