+
+
+
+ {exercise?.localBodyPart}
+ {exercise?.localEquipment}
+ {exercise?.localTarget}
+
+
+
+ {#if exercise?.localSecondaryMuscles?.length || exercise?.localTarget}
+
+
+
+ {#if exercise?.localTarget}
+ {exercise.localTarget}
+ {/if}
+ {#each exercise?.localSecondaryMuscles ?? [] as muscle}
+ {muscle}
+ {/each}
+
+
+ {/if}
+
+
+ {#if exercise?.overview}
+
{exercise.overview}
+ {/if}
+
+
+ {#if exercise?.localInstructions?.length}
+
{t('instructions', lang)}
+
+ {#each exercise.localInstructions as step}
+ - {step}
+ {/each}
+
+ {/if}
+
+
+ {#if similar.length > 0}
+
+
{lang === 'en' ? 'Similar Exercises' : 'Ähnliche Übungen'}
+
+
+ {/if}
-
+
{#if exercise?.localSecondaryMuscles?.length || exercise?.localTarget}
-
-
{lang === 'en' ? 'Muscles' : 'Muskeln'}
+
- {/if}
-
-
- {#if exercise?.overview}
-
{exercise.overview}
- {/if}
-
-
- {#if exercise?.localInstructions?.length}
-
{t('instructions', lang)}
-
- {#each exercise.localInstructions as step}
- - {step}
- {/each}
-
- {/if}
-
-
- {#if similar.length > 0}
-
-
{lang === 'en' ? 'Similar Exercises' : 'Ähnliche Übungen'}
-
-
+
{/if}
{:else if activeTab === 'history'}
@@ -325,14 +351,53 @@
.equipment { background: rgba(163, 190, 140, 0.2); color: var(--nord14); }
.target { background: rgba(208, 135, 112, 0.2); color: var(--nord12); }
- /* Muscle pills */
- .muscle-section {
- margin-bottom: 0.25rem;
+ /* About layout — two-column on wide screens */
+ .about-layout {
+ display: flex;
+ flex-direction: column;
}
+ .about-main {
+ flex: 1;
+ min-width: 0;
+ }
+ .muscle-sidebar {
+ display: none;
+ }
+ .muscle-section-mobile {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 0.5rem;
+ margin-bottom: 0.5rem;
+ }
+
+ @media (min-width: 600px) {
+ .about-layout {
+ flex-direction: row-reverse;
+ gap: 1.5rem;
+ align-items: flex-start;
+ }
+ .muscle-sidebar {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 0.5rem;
+ position: sticky;
+ top: 1rem;
+ flex-shrink: 0;
+ width: 180px;
+ }
+ .muscle-section-mobile {
+ display: none;
+ }
+ }
+
+ /* Muscle pills */
.muscle-pills {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
+ justify-content: center;
}
.muscle-pill {
padding: 0.2rem 0.55rem;