fix: render documentation URLs as hyperlinks in model tooltips (#17224)

This commit is contained in:
euvre
2026-07-22 16:03:03 +08:00
committed by GitHub
parent 86113fb7d4
commit dabe426c36
2 changed files with 72 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
* limitations under the License.
*/
import { LinkifyText } from '@/components/linkify-text';
import { ModelTreeSelect, ModelTypeMap } from '@/components/model-tree-select';
import {
Tooltip,
@@ -56,7 +57,9 @@ function ModelFieldItem({
{label}
{tooltip && (
<Tooltip>
<TooltipContent>{tooltip}</TooltipContent>
<TooltipContent>
<LinkifyText>{tooltip}</LinkifyText>
</TooltipContent>
<TooltipTrigger>
<CircleQuestionMark
size={12}