Skip to content

Commit

Permalink
[#809] fix: SQL input field width to improve UX for larger queries
Browse files Browse the repository at this point in the history
Resolves #809
  • Loading branch information
keevan committed Jul 18, 2023
1 parent f18748b commit a6a362d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/local/step/flow_sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function form_add_custom_inputs(\MoodleQuickForm &$mform) {
LIMIT 10";
$sqlexamples = \html_writer::tag('pre', trim($sqlexample, " \t\r\0\x0B"));
$mform->addElement('textarea', 'config_sql', get_string('flow_sql:sql', 'tool_dataflows'),
['cols' => 50, 'rows' => 7, 'style' => 'font: 87.5% monospace;']);
['rows' => 20, 'style' => 'font: 87.5% monospace; width: 100%; max-width: 100%']);
$mform->addElement('static', 'config_sql_help', '', get_string('flow_sql:sql_help', 'tool_dataflows', $sqlexamples));
}

Expand Down
2 changes: 1 addition & 1 deletion classes/local/step/reader_sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function form_add_custom_inputs(\MoodleQuickForm &$mform) {
$sqlexamples = \html_writer::tag('pre', trim($sqlexamples, " \t\r\0\x0B"));

$mform->addElement('textarea', 'config_sql', get_string('reader_sql:sql', 'tool_dataflows'),
['cols' => 50, 'rows' => 7, 'style' => 'font: 87.5% monospace;']);
['rows' => 20, 'style' => 'font: 87.5% monospace; width: 100%; max-width: 100%']);
$mform->addElement('static', 'config_sql_help', '', get_string('reader_sql:sql_help', 'tool_dataflows', $sqlexamples));

// Counter field.
Expand Down

0 comments on commit a6a362d

Please sign in to comment.