Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit ce936af

Browse files
committed
webui: Add prompt to the SQL input of the execute page
1 parent e623461 commit ce936af

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

webui/jsx/sql-terminal.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@
2828
.sql-terminal-input {
2929
padding-right: 1em;
3030
}
31+
32+
.sql-terminal-input-prompt {
33+
display: table-cell;
34+
width: 1%;
35+
font-family: "monospace";
36+
}

webui/jsx/sql-terminal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export default function SqlTerminal() {
222222
{recentCommands.map(c => <SqlTerminalCommand command={c} />)}
223223
<div className="sql-terminal-input">
224224
<div className="input-group" ref={editorRef}>
225+
<div className="sql-terminal-input-prompt"><strong className="text-muted">sql>&nbsp;</strong></div>
225226
<Editor
226227
value={code}
227228
onValueChange={text => setCode(text)}

0 commit comments

Comments
 (0)