3 Commits

Author SHA1 Message Date
vcoppe
4105687c0a fix icon size 2025-12-02 21:49:15 +01:00
vcoppe
8fe6565527 use browser navigation for /app 2025-11-28 17:48:21 +01:00
vcoppe
69b018022d fix waypoint default sym value 2025-11-27 08:01:05 +01:00
7 changed files with 24 additions and 11 deletions

View File

@@ -1495,12 +1495,18 @@ export class Waypoint {
this.attributes = waypoint.attributes; this.attributes = waypoint.attributes;
this.ele = waypoint.ele; this.ele = waypoint.ele;
this.time = waypoint.time; this.time = waypoint.time;
this.name = waypoint.name; this.name = waypoint.name === '' ? undefined : waypoint.name;
this.cmt = waypoint.cmt; this.cmt = waypoint.cmt === '' ? undefined : waypoint.cmt;
this.desc = waypoint.desc; this.desc = waypoint.desc === '' ? undefined : waypoint.desc;
this.link = waypoint.link; this.link =
this.sym = waypoint.sym; !waypoint.link ||
this.type = waypoint.type; !waypoint.link.attributes ||
!waypoint.link.attributes.href ||
waypoint.link.attributes.href === ''
? undefined
: waypoint.link;
this.sym = waypoint.sym === '' ? undefined : waypoint.sym;
this.type = waypoint.type === '' ? undefined : waypoint.type;
if (waypoint.hasOwnProperty('_data')) { if (waypoint.hasOwnProperty('_data')) {
this._data = waypoint._data; this._data = waypoint._data;
} }

View File

@@ -34,6 +34,7 @@
{i18n._('homepage.home')} {i18n._('homepage.home')}
</Button> </Button>
<Button <Button
data-sveltekit-reload
variant="link" variant="link"
class="h-6 px-0 has-[>svg]:px-0 text-muted-foreground" class="h-6 px-0 has-[>svg]:px-0 text-muted-foreground"
href={getURLForLanguage(i18n.lang, '/app')} href={getURLForLanguage(i18n.lang, '/app')}

View File

@@ -23,6 +23,7 @@
{i18n._('homepage.home')} {i18n._('homepage.home')}
</Button> </Button>
<Button <Button
data-sveltekit-reload
variant="link" variant="link"
class="text-base px-0 has-[>svg]:px-0" class="text-base px-0 has-[>svg]:px-0"
href={getURLForLanguage(i18n.lang, '/app')} href={getURLForLanguage(i18n.lang, '/app')}

View File

@@ -195,7 +195,7 @@
disabled={!validSelection} disabled={!validSelection}
onclick={fileActions.reverseSelection} onclick={fileActions.reverseSelection}
> >
<ArrowRightLeft size="12" />{i18n._('toolbar.routing.reverse.button')} <ArrowRightLeft class="size-3" />{i18n._('toolbar.routing.reverse.button')}
</ButtonWithTooltip> </ButtonWithTooltip>
<ButtonWithTooltip <ButtonWithTooltip
label={i18n._('toolbar.routing.route_back_to_start.tooltip')} label={i18n._('toolbar.routing.route_back_to_start.tooltip')}
@@ -231,7 +231,7 @@
} }
}} }}
> >
<House size="12" />{i18n._('toolbar.routing.route_back_to_start.button')} <House class="size-3" />{i18n._('toolbar.routing.route_back_to_start.button')}
</ButtonWithTooltip> </ButtonWithTooltip>
<ButtonWithTooltip <ButtonWithTooltip
label={i18n._('toolbar.routing.round_trip.tooltip')} label={i18n._('toolbar.routing.round_trip.tooltip')}
@@ -240,7 +240,7 @@
disabled={!validSelection} disabled={!validSelection}
onclick={fileActions.createRoundTripForSelection} onclick={fileActions.createRoundTripForSelection}
> >
<Repeat size="12" />{i18n._('toolbar.routing.round_trip.button')} <Repeat class="size-3" />{i18n._('toolbar.routing.round_trip.button')}
</ButtonWithTooltip> </ButtonWithTooltip>
</div> </div>
<div class="w-full flex flex-row gap-2 items-end justify-between"> <div class="w-full flex flex-row gap-2 items-end justify-between">

View File

@@ -95,7 +95,7 @@
desc: description.length > 0 ? description : undefined, desc: description.length > 0 ? description : undefined,
cmt: description.length > 0 ? description : undefined, cmt: description.length > 0 ? description : undefined,
link: link.length > 0 ? { attributes: { href: link } } : undefined, link: link.length > 0 ? { attributes: { href: link } } : undefined,
sym: sym, sym: sym.length > 0 ? sym : undefined,
}, },
selectedWaypoint.wpt && selectedWaypoint.fileId selectedWaypoint.wpt && selectedWaypoint.fileId
? new ListWaypointItem(selectedWaypoint.fileId, selectedWaypoint.wpt._data.index) ? new ListWaypointItem(selectedWaypoint.fileId, selectedWaypoint.wpt._data.index)

View File

@@ -19,6 +19,7 @@
{i18n._('homepage.home')} {i18n._('homepage.home')}
</Button> </Button>
<Button <Button
data-sveltekit-reload
href={getURLForLanguage(i18n.lang, '/app')} href={getURLForLanguage(i18n.lang, '/app')}
class="text-base w-1/4 min-w-fit rounded-full" class="text-base w-1/4 min-w-fit rounded-full"
> >

View File

@@ -64,7 +64,11 @@
{i18n._('metadata.description')} {i18n._('metadata.description')}
</div> </div>
<div class="w-full flex flex-row justify-center gap-3"> <div class="w-full flex flex-row justify-center gap-3">
<Button href={getURLForLanguage(i18n.lang, '/app')} class="w-1/3 min-w-fit"> <Button
data-sveltekit-reload
href={getURLForLanguage(i18n.lang, '/app')}
class="w-1/3 min-w-fit"
>
<Map size="18" /> <Map size="18" />
{i18n._('homepage.app')} {i18n._('homepage.app')}
</Button> </Button>