File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { CSSResultGroup , html } from 'lit' ;
2
2
import { customElement , property } from 'lit/decorators.js' ;
3
+ import { ifDefined } from "lit-html/directives/if-defined.js" ;
3
4
import { I18nLitElement , t } from '../i18n-mixin' ;
4
5
import { CourseParticipant , Participant } from '../../model/participant' ;
5
6
import { Component } from '../component' ;
@@ -92,7 +93,7 @@ export class ParticipantListItem extends Component {
92
93
return html `
93
94
< sl-tooltip class ="tooltip-avatar " trigger ="hover ">
94
95
< div class ="tooltip-avatar-container " slot ="content ">
95
- < img class ="tooltip-avatar-image " src ="${ Participant . getAvatar ( this . participant ) } " alt ="${ fullName } ">
96
+ < img class ="tooltip-avatar-image " src ="${ ifDefined ( Participant . getAvatar ( this . participant ) ) } " alt ="${ fullName } ">
96
97
< div class ="tooltip-avatar-info ">
97
98
< span > ${ fullName } </ span >
98
99
< span > ${ t ( "course.role." + type ) } </ span >
Original file line number Diff line number Diff line change @@ -21,7 +21,16 @@ export class LecturePlayerStyles extends I18nLitElement {
21
21
left : 50% ;
22
22
transform : translateX (-50% );
23
23
}
24
+
25
+ .hiddenCanvasElement {
26
+ position : absolute;
27
+ top : 0 ;
28
+ left : 0 ;
29
+ width : 0 ;
30
+ height : 0 ;
31
+ display : none;
32
+ }
24
33
</ style >
25
34
` ;
26
35
}
27
- }
36
+ }
Original file line number Diff line number Diff line change 16
16
"downlevelIteration" : true ,
17
17
"esModuleInterop" : true ,
18
18
"allowSyntheticDefaultImports" : true ,
19
- "experimentalDecorators" : true ,
19
+ "experimentalDecorators" : false ,
20
20
"emitDecoratorMetadata" : false ,
21
21
"useDefineForClassFields" : false ,
22
22
"strictBindCallApply" : true ,
You can’t perform that action at this time.
0 commit comments