Unverified 提交 b72d1927 authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Show SQL description (#66)

上级 1327e64e
...@@ -43,7 +43,10 @@ export const DyadExecuteSql: React.FC<DyadExecuteSqlProps> = ({ ...@@ -43,7 +43,10 @@ export const DyadExecuteSql: React.FC<DyadExecuteSqlProps> = ({
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<Database size={16} /> <Database size={16} />
<span className="text-gray-700 dark:text-gray-300 font-medium text-sm"> <span className="text-gray-700 dark:text-gray-300 font-medium text-sm">
{queryDescription || "SQL Query"} <span className="font-bold mr-2 outline-2 outline-gray-200 dark:outline-gray-700 bg-gray-100 dark:bg-gray-800 rounded-md px-1">
SQL
</span>
{queryDescription}
</span> </span>
{inProgress && ( {inProgress && (
<div className="flex items-center text-amber-600 text-xs"> <div className="flex items-center text-amber-600 text-xs">
......
...@@ -299,6 +299,7 @@ function renderCustomTag( ...@@ -299,6 +299,7 @@ function renderCustomTag(
node={{ node={{
properties: { properties: {
state: getState({ isStreaming, inProgress }), state: getState({ isStreaming, inProgress }),
description: attributes.description || "",
}, },
}} }}
> >
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论