chore: more sql button explicit

This commit is contained in:
tianzhou
2023-06-28 13:30:32 +08:00
parent b5c164512d
commit 1b85bb9f3c
5 changed files with 15 additions and 19 deletions

View File

@ -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>

View File

@ -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 ? (

View File

@ -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",

View File

@ -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",

View File

@ -9,7 +9,7 @@
"setting": "设置",
"copy": "复制",
"delete": "删除",
"execute": "执行",
"run-sql": "运行 SQL",
"sign-in": "登录",
"sign-out": "登出",
"back": "返回",