Просмотр исходного кода

fix: move log button back to right column with B站/Keep

17846405080 1 месяц назад
Родитель
Сommit
fd8ab0f1b1

+ 3 - 4
campus_health_app/frontend/campus-health-app/src/app/modules/exercise/exercise-actions/exercise-actions.component.html

@@ -41,11 +41,10 @@
           <button class="link-btn keep" *ngIf="action.keepUrl" (click)="openKeep(action.keepUrl!)">
             <span>🏃</span><span>Keep</span>
           </button>
+          <button class="link-btn" *ngIf="!logForm[action.id]" style="background:#ccfbf1;color:#0d9488;" (click)="startLog(action.id, action.name)">
+            <span>📝</span><span>记一组</span>
+          </button>
         </div>
-        <button *ngIf="!logForm[action.id]" (click)="startLog(action.id, action.name)"
-                style="grid-column:1/-1;margin-top:8px;padding:8px;background:#e6fffa;color:#0d9488;border:1px solid #0d9488;border-radius:8px;cursor:pointer;font-size:13px;">
-          📝 记一组
-        </button>
         <div *ngIf="logForm[action.id]" style="grid-column:1/-1;background:#f9fbe7;padding:10px;border-radius:8px;margin-top:8px;">
           <div style="display:flex;gap:8px;align-items:center;flex-wrap:wrap;">
             <input type="number" [(ngModel)]="logForm[action.id].weightKg" placeholder="重量kg" style="width:80px;padding:6px;border:1px solid #ddd;border-radius:4px;">