File tree Expand file tree Collapse file tree 4 files changed +28
-7
lines changed Expand file tree Collapse file tree 4 files changed +28
-7
lines changed Original file line number Diff line number Diff line change 26
26
}}
27
27
28
28
{ {#isexempt} }
29
- <span class =" gradepenalty-status" data-bs-toggle =" tooltip" title =" { { exemptioninfo} } " >
30
- { {#pix} }{ {exemptionicon.name} }, { {exemptionicon.component} }, { {exemptioninfo} }{ {/pix} }
31
- </span >
29
+ <span class =" gradepenaltystatus" data-bs-toggle =" tooltip" title =" { { exemptioninfo} } " ><!-- Prevent whitespace
30
+ --> { {#pix} }{ {exemptionicon.name} }, { {exemptionicon.component} }, { {exemptioninfo} }{ {/pix} }</span >
32
31
{ {/isexempt} }
33
32
{ {^isexempt} }
34
33
{ {#penaltyapplied} }
35
- <span class =" gradepenalty-status" data-bs-toggle =" tooltip" title =" { { penaltyinfo} } " >
36
- { {#pix} }{ {penaltyicon.name} }, { {penaltyicon.component} }, { {penaltyinfo} }{ {/pix} }
37
- </span >
34
+ <span class =" gradepenaltystatus" data-bs-toggle =" tooltip" title =" { { penaltyinfo} } " ><!-- Prevent whitespace
35
+ --> { {#pix} }{ {penaltyicon.name} }, { {penaltyicon.component} }, { {penaltyinfo} }{ {/pix} }</span >
38
36
{ {/penaltyapplied} }
39
37
{ {/isexempt} }
40
38
41
39
{ {#js} }
42
40
require(['theme_boost/bootstrap/tooltip'], function(Tooltip) {
43
41
// Re-init the tooltip to ensure those dynamically added through AJAX are initialized
44
- document.querySelectorAll(' .penalty-status [data-bs-toggle="tooltip"]' ).forEach(tooltipElement => {
42
+ document.querySelectorAll(' .gradepenaltystatus [data-bs-toggle="tooltip"]' ).forEach(tooltipElement => {
45
43
Tooltip.getInstance(tooltipElement)?.dispose();
46
44
new Tooltip(tooltipElement);
45
+ tooltipElement.querySelector(' i[title]' ).removeAttribute(' title' );
47
46
} );
48
47
});
49
48
{ {/js} }
Original file line number Diff line number Diff line change 758
758
.gradestatus .icon {
759
759
margin-right : 1rem ;
760
760
}
761
+
762
+ .gradepenaltystatus {
763
+ padding : 6px ;
764
+
765
+ .icon {
766
+ margin : 0 ;
767
+ }
768
+ }
Original file line number Diff line number Diff line change @@ -38039,6 +38039,13 @@ p.arrow_button {
38039
38039
margin-right: 1rem;
38040
38040
}
38041
38041
38042
+ .gradepenaltystatus {
38043
+ padding: 6px;
38044
+ }
38045
+ .gradepenaltystatus .icon {
38046
+ margin: 0;
38047
+ }
38048
+
38042
38049
.columns-autoflow-1to1to1 {
38043
38050
column-count: 3;
38044
38051
}
Original file line number Diff line number Diff line change @@ -38039,6 +38039,13 @@ p.arrow_button {
38039
38039
margin-right: 1rem;
38040
38040
}
38041
38041
38042
+ .gradepenaltystatus {
38043
+ padding: 6px;
38044
+ }
38045
+ .gradepenaltystatus .icon {
38046
+ margin: 0;
38047
+ }
38048
+
38042
38049
.columns-autoflow-1to1to1 {
38043
38050
column-count: 3;
38044
38051
}
You can’t perform that action at this time.
0 commit comments