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 11import { CSSResultGroup , html } from 'lit' ;
22import { customElement , property } from 'lit/decorators.js' ;
3+ import { ifDefined } from "lit-html/directives/if-defined.js" ;
34import { I18nLitElement , t } from '../i18n-mixin' ;
45import { CourseParticipant , Participant } from '../../model/participant' ;
56import { Component } from '../component' ;
@@ -92,7 +93,7 @@ export class ParticipantListItem extends Component {
9293 return html `
9394 < sl-tooltip class ="tooltip-avatar " trigger ="hover ">
9495 < 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 } ">
9697 < div class ="tooltip-avatar-info ">
9798 < span > ${ fullName } </ span >
9899 < 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 {
2121 left : 50% ;
2222 transform : translateX (-50% );
2323 }
24+
25+ .hiddenCanvasElement {
26+ position : absolute;
27+ top : 0 ;
28+ left : 0 ;
29+ width : 0 ;
30+ height : 0 ;
31+ display : none;
32+ }
2433 </ style >
2534 ` ;
2635 }
27- }
36+ }
Original file line number Diff line number Diff line change 1616 "downlevelIteration" : true ,
1717 "esModuleInterop" : true ,
1818 "allowSyntheticDefaultImports" : true ,
19- "experimentalDecorators" : true ,
19+ "experimentalDecorators" : false ,
2020 "emitDecoratorMetadata" : false ,
2121 "useDefineForClassFields" : false ,
2222 "strictBindCallApply" : true ,
You can’t perform that action at this time.
0 commit comments