MDL-56149 permissions: Alignment of icons should not wrap

/admin/roles/permissions.php?contextid=2 the icons should not wrap.
This commit is contained in:
Damyon Wiese 2016-10-31 16:24:11 +08:00
parent 577bd70d38
commit a2d9a89f5a
3 changed files with 9 additions and 1 deletions

View file

@ -132,7 +132,7 @@ class core_role_permissions_table extends core_role_capability_table_base {
$risks = $this->get_risks($capability); $risks = $this->get_risks($capability);
$contents = html_writer::tag('td', $risks, array('class' => 'risks')); $contents = html_writer::tag('td', $risks, array('class' => 'risks text-nowrap'));
$contents .= html_writer::tag('td', $neededroles, array('class' => 'allowedroles')); $contents .= html_writer::tag('td', $neededroles, array('class' => 'allowedroles'));
$contents .= html_writer::tag('td', $forbiddenroles, array('class' => 'forbiddenroles')); $contents .= html_writer::tag('td', $forbiddenroles, array('class' => 'forbiddenroles'));
return $contents; return $contents;

View file

@ -139,3 +139,7 @@
.pull-xs-right:extend(.pull-right) { .pull-xs-right:extend(.pull-right) {
/* stylelint-disable-line no-empty-source */ /* stylelint-disable-line no-empty-source */
} }
.text-nowrap {
white-space: nowrap !important; /* stylelint-disable-line declaration-no-important */
}

View file

@ -19224,3 +19224,7 @@ input[type="reset"] .caret {
.pull-xs-right { .pull-xs-right {
/* stylelint-disable-line no-empty-source */ /* stylelint-disable-line no-empty-source */
} }
.text-nowrap {
white-space: nowrap !important;
/* stylelint-disable-line declaration-no-important */
}