mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-25 16:13:10 +08:00
chore: more sql button explicit
This commit is contained in:
@ -60,14 +60,12 @@ export const CodeBlock = (props: Props) => {
|
||||
</button>
|
||||
</Tooltip>
|
||||
{showExecuteButton && (
|
||||
<Tooltip title={t("common.execute")} side="top">
|
||||
<button
|
||||
className="flex justify-center items-center rounded bg-none w-6 h-6 p-1 text-xs text-white bg-indigo-600 opacity-90 hover:opacity-100"
|
||||
onClick={handleExecuteQuery}
|
||||
>
|
||||
<Icon.IoPlay className="w-full h-auto" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
<button
|
||||
className="flex justify-center items-center rounded bg-none h-6 py-1 px-2 text-xs text-white bg-indigo-600 opacity-90 hover:opacity-100"
|
||||
onClick={handleExecuteQuery}
|
||||
>
|
||||
{t("common.run-sql")}
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -132,14 +132,12 @@ const QueryDrawer = () => {
|
||||
placeholder="Enter your SQL statement here..."
|
||||
onChange={(e) => setStatement(e.target.value)}
|
||||
/>
|
||||
<Tooltip title={t("common.execute")} side="top">
|
||||
<button
|
||||
className="w-6 p-1 -translate-y-2 cursor-pointer rounded-md hover:shadow opacity-90 hover:opacity-100 bg-indigo-600 text-gray-50 disabled:cursor-not-allowed disabled:opacity-60"
|
||||
onClick={() => executeStatement(statement)}
|
||||
>
|
||||
<Icon.IoPlay className="w-full h-auto" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
<button
|
||||
className="h-8 py-1 px-4 whitespace-nowrap -translate-y-2 cursor-pointer rounded-md hover:shadow opacity-90 hover:opacity-100 bg-indigo-600 text-gray-50 disabled:cursor-not-allowed disabled:opacity-60"
|
||||
onClick={() => executeStatement(statement)}
|
||||
>
|
||||
{t("common.run-sql")}
|
||||
</button>
|
||||
</div>
|
||||
<div className="w-full flex flex-col justify-start items-start mt-4">
|
||||
{isLoading ? (
|
||||
|
@ -9,7 +9,7 @@
|
||||
"setting": "Setting",
|
||||
"copy": "Copy",
|
||||
"delete": "Delete",
|
||||
"execute": "Execute",
|
||||
"run-sql": "Run SQL",
|
||||
"sign-in": "Sign in",
|
||||
"sign-out": "Sign out",
|
||||
"back": "Back",
|
||||
|
@ -9,7 +9,7 @@
|
||||
"setting": "Configuración",
|
||||
"copy": "Copiar",
|
||||
"delete": "Borrar",
|
||||
"execute": "Ejecutar",
|
||||
"run-sql": "Ejecutar SQL",
|
||||
"sign-in": "Iniciar sesión",
|
||||
"sign-out": "Desconectar",
|
||||
"back": "Volver",
|
||||
|
@ -9,7 +9,7 @@
|
||||
"setting": "设置",
|
||||
"copy": "复制",
|
||||
"delete": "删除",
|
||||
"execute": "执行",
|
||||
"run-sql": "运行 SQL",
|
||||
"sign-in": "登录",
|
||||
"sign-out": "登出",
|
||||
"back": "返回",
|
||||
|
Reference in New Issue
Block a user