수평 바 차트 구현
This commit is contained in:
@@ -220,7 +220,6 @@ ORDER BY Q4 DESC;`,
|
||||
placeholder="SELECT * FROM your_table WHERE condition = 'value';"
|
||||
className="h-40 resize-none font-mono text-sm"
|
||||
/>
|
||||
<div className="absolute right-3 bottom-3 text-xs text-gray-400">Ctrl+Enter로 실행</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -318,19 +317,6 @@ ORDER BY Q4 DESC;`,
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
|
||||
// Ctrl+Enter로 쿼리 실행
|
||||
React.useEffect(() => {
|
||||
const handleKeyDown = (e: KeyboardEvent) => {
|
||||
if (e.ctrlKey && e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
executeQuery();
|
||||
}
|
||||
};
|
||||
|
||||
document.addEventListener("keydown", handleKeyDown);
|
||||
return () => document.removeEventListener("keydown", handleKeyDown);
|
||||
}, [executeQuery]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user