Skip to content

Commit

Permalink
DASH-220 add min height and filtering margin
Browse files Browse the repository at this point in the history
  • Loading branch information
moodledev committed Jan 12, 2021
1 parent a5a4fb8 commit 0f30744
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,9 @@ protected function specific_definition($mform) {
$mform->addElement('text', 'config_css[border]', get_string('border', 'block_dash'));
$mform->setType('config_css[border]', PARAM_TEXT);
$mform->addHelpButton('config_css[border]', 'border', 'block_dash');

$mform->addElement('text', 'config_css[min-height]', get_string('minheight', 'block_dash'));
$mform->setType('config_css[min-height]', PARAM_TEXT);
$mform->addHelpButton('config_css[min-height]', 'minheight', 'block_dash');
}
}
2 changes: 2 additions & 0 deletions lang/en/block_dash.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@
$string['maxlimit'] = 'Limit to';
$string['maxlimit_help'] = 'Limit query results to this maximum amount.';
$string['messageurl'] = 'Message URL';
$string['minheight'] = 'Minimum height';
$string['minheight_help'] = 'Minimum height in pixels for block.';
$string['missingmustachetemplate'] = 'Missing mustache template.';
$string['mustachetemplate'] = 'Mustache template';
$string['mydashboards'] = 'My dashboards';
Expand Down
6 changes: 6 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ body#page-blocks-dash-data-source .ui-sortable-helper {
white-space: nowrap;
}

/** Position background image nicely **/
.block_dash {
background-size: cover;
}

/** Add room between select filters. **/
.block_dash .select2.select2-container {
margin-right: 10px;
}

/** Block widths **/
.block_dash.dash-block-width-100 {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021011201; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2021011202; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2017051509; // Requires this Moodle version.
$plugin->component = 'block_dash'; // Full name of the plugin (used for diagnostics).
$plugin->maturity = MATURITY_BETA;
Expand Down

0 comments on commit 0f30744

Please sign in to comment.