+
{terrain.preloaded < 1 ? (
+ {vertical ? : }
+
+ );
+}
+
+/** The row's half after play, restart and overview: the speeds, the relief slider and the grade switch. */
+function DockRowTail({ terrain, water }: { terrain: TerrainControls; water?: boolean }) {
+ const { t } = useTranslation();
+ return (
+ <>
{SPEEDS.map((speed) => (
@@ -283,7 +371,7 @@ function TerrainDock({
{!water && }
-
+ >
);
}
@@ -409,7 +497,7 @@ function GradeLegend({
{compact && (
@@ -439,12 +527,26 @@ function GradeLegend({
aria-expanded={open}
aria-controls="tour-terrain-grades"
aria-label={t('tours.terrain.gradeMix')}
- className="flex h-[42px] items-center gap-2 rounded-full pe-2 ps-3"
+ className={
+ compact
+ ? 'flex w-[42px] flex-col items-center gap-2 rounded-full pb-1 pt-3'
+ : 'flex h-[42px] items-center gap-2 rounded-full pe-2 ps-3'
+ }
style={GLASS}
>
-
+
{GRADE_BANDS.map((band) => (
-
+
))}
{!compact && }