Skip to content

Commit a12b0f8

Browse files
authored
MBS-10655: Fix missing background in purpose info table highlight (#122)
1 parent 719aab1 commit a12b0f8

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

lang/en/local_ai_manager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@
225225
$string['purposesdescription'] = 'Which of your configured AI tools should be used for which purpose?';
226226
$string['purposesheading'] = 'Purposes for {$a->role} ({$a->currentcount}/{$a->maxcount} assigned)';
227227
$string['purposeusageinfoheading'] = 'Usage of the purpose "{$a}"';
228+
$string['purposeusedbytool'] = 'This purpose is being used by the tool from which you landed on this page';
228229
$string['quotaconfig'] = 'Limits configuration';
229230
$string['quotadescription'] = 'Set the time window and the maximum number of requests per student and teacher here. After the time window expires, the number of requests will automatically reset.';
230231
$string['request_count'] = 'Request count';

styles.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,8 @@ body.limitcontentwidth #page-content {
206206
#page-local-ai_manager-tenant_config .instanceaddmodal a:hover .card-title {
207207
text-decoration: underline;
208208
}
209+
210+
.local_ai_manager-purposeinfo table tr.local_ai_manager-purpose-highlight {
211+
background-color: var(--bs-info-bg-subtle);
212+
color: var(--bs-info-text-emphasis);
213+
}

templates/purpose_info.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
</thead>
8383
<tbody>
8484
{{#purposes}}
85-
<tr class="{{#highlight}}table-info{{/highlight}}">
85+
<tr class="{{#highlight}}local_ai_manager-purpose-highlight{{/highlight}}"{{#highlight}} title="{{#str}}purposeusedbytool, local_ai_manager{{/str}}"{{/highlight}}>
8686
<td>
8787
<div class="d-flex flex-row justify-content-between align-items-center">
8888
<span>{{purpose}}</span>

0 commit comments

Comments
 (0)