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> </button>
</Tooltip> </Tooltip>
{showExecuteButton && ( {showExecuteButton && (
<Tooltip title={t("common.execute")} side="top">
<button <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" 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} onClick={handleExecuteQuery}
> >
<Icon.IoPlay className="w-full h-auto" /> {t("common.run-sql")}
</button> </button>
</Tooltip>
)} )}
</div> </div>
</div> </div>

View File

@ -132,14 +132,12 @@ const QueryDrawer = () => {
placeholder="Enter your SQL statement here..." placeholder="Enter your SQL statement here..."
onChange={(e) => setStatement(e.target.value)} onChange={(e) => setStatement(e.target.value)}
/> />
<Tooltip title={t("common.execute")} side="top">
<button <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" 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)} onClick={() => executeStatement(statement)}
> >
<Icon.IoPlay className="w-full h-auto" /> {t("common.run-sql")}
</button> </button>
</Tooltip>
</div> </div>
<div className="w-full flex flex-col justify-start items-start mt-4"> <div className="w-full flex flex-col justify-start items-start mt-4">
{isLoading ? ( {isLoading ? (

View File

@ -9,7 +9,7 @@
"setting": "Setting", "setting": "Setting",
"copy": "Copy", "copy": "Copy",
"delete": "Delete", "delete": "Delete",
"execute": "Execute", "run-sql": "Run SQL",
"sign-in": "Sign in", "sign-in": "Sign in",
"sign-out": "Sign out", "sign-out": "Sign out",
"back": "Back", "back": "Back",

View File

@ -9,7 +9,7 @@
"setting": "Configuración", "setting": "Configuración",
"copy": "Copiar", "copy": "Copiar",
"delete": "Borrar", "delete": "Borrar",
"execute": "Ejecutar", "run-sql": "Ejecutar SQL",
"sign-in": "Iniciar sesión", "sign-in": "Iniciar sesión",
"sign-out": "Desconectar", "sign-out": "Desconectar",
"back": "Volver", "back": "Volver",

View File

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