Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
devopvoid committed May 31, 2024
1 parent c459e71 commit e4f708a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/component/participant-list/participant-list-item.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { CSSResultGroup, html } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { ifDefined } from "lit-html/directives/if-defined.js";
import { I18nLitElement, t } from '../i18n-mixin';
import { CourseParticipant, Participant } from '../../model/participant';
import { Component } from '../component';
Expand Down Expand Up @@ -92,7 +93,7 @@ export class ParticipantListItem extends Component {
return html`
<sl-tooltip class="tooltip-avatar" trigger="hover">
<div class="tooltip-avatar-container" slot="content">
<img class="tooltip-avatar-image" src="${Participant.getAvatar(this.participant)}" alt="${fullName}">
<img class="tooltip-avatar-image" src="${ifDefined(Participant.getAvatar(this.participant))}" alt="${fullName}">
<div class="tooltip-avatar-info">
<span>${fullName}</span>
<span>${t("course.role." + type)}</span>
Expand Down
11 changes: 10 additions & 1 deletion src/component/player/player-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ export class LecturePlayerStyles extends I18nLitElement {
left: 50%;
transform: translateX(-50%);
}
.hiddenCanvasElement {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
display: none;
}
</style>
`;
}
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"downlevelIteration": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"experimentalDecorators": false,
"emitDecoratorMetadata": false,
"useDefineForClassFields": false,
"strictBindCallApply": true,
Expand Down

0 comments on commit e4f708a

Please sign in to comment.