Skip to content

Commit 097b3a1

Browse files
committed
Make codechecker even more happy (by removing SCSS deprecations)
1 parent 28e3f2f commit 097b3a1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

classes/util/course.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ public function get_custom_fields(): string {
191191

192192
// Only render if there's a value.
193193
if (!empty($fieldvalue)) {
194-
$badges .= \html_writer::start_span('customfieldbadge customfield_' . $fieldtype . ' mr-2');
194+
$badges .= \html_writer::start_span('customfieldbadge customfield_' . $fieldtype . ' me-2');
195195
$badges .= \html_writer::span($fieldname . ': ', 'customfieldname visually-hidden');
196-
$badges .= \html_writer::span($fieldvalue, 'customfieldvalue badge badge-info');
196+
$badges .= \html_writer::span($fieldvalue, 'customfieldvalue badge bg-info');
197197
$badges .= \html_writer::end_span();
198198
}
199199
}

templates/settings-overview.mustache

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
<p class="card-text">{{desc}}</p>
5252
</div>
5353
<div class="card-footer">
54-
<a href="{{url}}" class="btn btn-{{btn}} btn-block">{{label}}</a>
54+
<div class="d-grid">
55+
<a href="{{url}}" class="btn btn-{{btn}}">{{label}}</a>
56+
</div>
5557
</div>
5658
</div>
5759
</div>

0 commit comments

Comments
 (0)