Skip to content

Commit e4f708a

Browse files
committed
Minor fixes
1 parent c459e71 commit e4f708a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

src/component/participant-list/participant-list-item.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { CSSResultGroup, html } from 'lit';
22
import { customElement, property } from 'lit/decorators.js';
3+
import { ifDefined } from "lit-html/directives/if-defined.js";
34
import { I18nLitElement, t } from '../i18n-mixin';
45
import { CourseParticipant, Participant } from '../../model/participant';
56
import { 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>

src/component/player/player-styles.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"downlevelIteration": true,
1717
"esModuleInterop": true,
1818
"allowSyntheticDefaultImports": true,
19-
"experimentalDecorators": true,
19+
"experimentalDecorators": false,
2020
"emitDecoratorMetadata": false,
2121
"useDefineForClassFields": false,
2222
"strictBindCallApply": true,

0 commit comments

Comments
 (0)