Ver código fonte

fix(mobile): hide meanings during lesson end assessment

彭峰 1 semana atrás
pai
commit
1acd88f7e2

+ 1 - 1
projects/xiaoshu-mobile/src/app/features/learning/learning-page.component.html

@@ -334,7 +334,7 @@
     <div class="review-list">
     <div class="review-list">
       @for (word of words(); track word.id) {
       @for (word of words(); track word.id) {
         <article>
         <article>
-          <button type="button" class="word-audio" (click)="play(word)"><span><strong>{{ word.word }}</strong><small>{{ word.meaning }}</small></span><lucide-icon [img]="icons.Volume2" [size]="18" /></button>
+          <button type="button" class="word-audio" (click)="play(word)"><span><strong>{{ word.word }}</strong>@if (meta.path !== 'pages/stu/pl_end') { <small>{{ word.meaning }}</small> }</span><lucide-icon [img]="icons.Volume2" [size]="18" /></button>
           <div class="review-buttons">
           <div class="review-buttons">
             <button type="button" [class.active]="reviewValue(word) === 1" (click)="markReview(word, 1)"><lucide-icon [img]="icons.Check" [size]="18" />已掌握</button>
             <button type="button" [class.active]="reviewValue(word) === 1" (click)="markReview(word, 1)"><lucide-icon [img]="icons.Check" [size]="18" />已掌握</button>
             <button type="button" [class.active]="reviewValue(word) === 2" (click)="markReview(word, 2)"><lucide-icon [img]="icons.X" [size]="18" />待加强</button>
             <button type="button" [class.active]="reviewValue(word) === 2" (click)="markReview(word, 2)"><lucide-icon [img]="icons.X" [size]="18" />待加强</button>