From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/base/prompt-editor/plugins/component-picker-block/variable-option.tsx | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/components/base/prompt-editor/plugins/component-picker-block/variable-option.tsx b/app/components/base/prompt-editor/plugins/component-picker-block/variable-option.tsx
index 20c0376..ae0cdfb 100644
--- a/app/components/base/prompt-editor/plugins/component-picker-block/variable-option.tsx
+++ b/app/components/base/prompt-editor/plugins/component-picker-block/variable-option.tsx
@@ -2,8 +2,8 @@
type VariableMenuItemProps = {
title: string
- icon?: React.JSX.Element
- extraElement?: React.JSX.Element
+ icon?: JSX.Element
+ extraElement?: JSX.Element
isSelected: boolean
queryString: string | null
onClick: () => void
@@ -38,7 +38,7 @@
return (
<div
className={`
- flex h-6 cursor-pointer items-center rounded-md px-3 hover:bg-state-base-hover
+ flex items-center px-3 h-6 rounded-md hover:bg-state-base-hover cursor-pointer
${isSelected && 'bg-state-base-hover'}
`}
tabIndex={-1}
@@ -48,7 +48,7 @@
<div className='mr-2'>
{icon}
</div>
- <div className='grow truncate text-[13px] text-text-secondary' title={title}>
+ <div className='grow text-[13px] text-text-secondary truncate' title={title}>
{before}
<span className='text-text-accent'>{middle}</span>
{after}
--
Gitblit v1.8.0