- {user.username}
-
+
+ {user.username}
+
{user.email}
diff --git a/web/src/lib/components/trail/map_with_elevation_maplibre.svelte b/web/src/lib/components/trail/map_with_elevation_maplibre.svelte
index bdeec27d..e2814cea 100644
--- a/web/src/lib/components/trail/map_with_elevation_maplibre.svelte
+++ b/web/src/lib/components/trail/map_with_elevation_maplibre.svelte
@@ -132,25 +132,7 @@
adjustTrailFocus(activeTrail);
});
$effect(() => {
- if ($theme == "dark") {
- epc?.toggleTheme({
- profileBackgroundColor: "#191b24",
- elevationGridColor: "#ddd2",
- labelColor: "#ddd8",
- crosshairColor: "#fff5",
- tooltipBackgroundColor: "#242734",
- tooltipTextColor: "#fff",
- });
- } else {
- epc?.toggleTheme({
- profileBackgroundColor: "#242734",
- elevationGridColor: "#0002",
- labelColor: "#0009",
- crosshairColor: "#0005",
- tooltipBackgroundColor: "#fff",
- tooltipTextColor: "#000",
- });
- }
+ toggleEpcTheme();
});
$effect(() => {
if (drawing && map) {
@@ -258,7 +240,7 @@
export function refreshElevationProfile() {
if (activeTrail !== null && data[activeTrail]) {
- epc?.setData(data[activeTrail]!, waypoints);
+ epc?.setData(data[activeTrail]!, waypoints);
}
}
@@ -280,7 +262,7 @@
return new M.LngLatBounds([minX, minY, maxX, maxY]);
}
- function flyToBounds() {
+ function flyToBounds() {
const bounds =
activeTrail !== null && data[activeTrail]
? (data[activeTrail].bbox as M.LngLatBoundsLike)
@@ -693,6 +675,28 @@
markers = [];
}
+ function toggleEpcTheme() {
+ if ($theme == "dark") {
+ epc?.toggleTheme({
+ profileBackgroundColor: "#191b24",
+ elevationGridColor: "#ddd2",
+ labelColor: "#ddd8",
+ crosshairColor: "#fff5",
+ tooltipBackgroundColor: "#242734",
+ tooltipTextColor: "#fff",
+ });
+ } else {
+ epc?.toggleTheme({
+ profileBackgroundColor: "#242734",
+ elevationGridColor: "#0002",
+ labelColor: "#0009",
+ crosshairColor: "#0005",
+ tooltipBackgroundColor: "#fff",
+ tooltipTextColor: "#000",
+ });
+ }
+ }
+
onMount(async () => {
const initialState = {
lng: 0,
@@ -844,6 +848,7 @@
}
},
});
+ toggleEpcTheme();
map.addControl(epc);
}
diff --git a/web/src/lib/components/trail/trail_info_panel.svelte b/web/src/lib/components/trail/trail_info_panel.svelte
index d46437b6..37596b9d 100644
--- a/web/src/lib/components/trail/trail_info_panel.svelte
+++ b/web/src/lib/components/trail/trail_info_panel.svelte
@@ -2,7 +2,6 @@
import { goto } from "$app/navigation";
import Tabs from "$lib/components/base/tabs.svelte";
import TrailDropdown from "$lib/components/trail/trail_dropdown.svelte";
- import WaypointCard from "$lib/components/waypoint/waypoint_card.svelte";
import { Comment } from "$lib/models/comment";
import type { Trail } from "$lib/models/trail";
@@ -21,6 +20,7 @@
formatTimeHHMM,
} from "$lib/util/format_util";
+ import { browser } from "$app/environment";
import emptyStateTrailDark from "$lib/assets/svgs/empty_states/empty_state_trail_dark.svg";
import emptyStateTrailLight from "$lib/assets/svgs/empty_states/empty_state_trail_light.svg";
import { pb } from "$lib/pocketbase";
@@ -34,15 +34,13 @@
import SkeletonNotificationCard from "../base/skeleton_notification_card.svelte";
import Textarea from "../base/textarea.svelte";
import CommentCard from "../comment/comment_card.svelte";
+ import EmptyStateComment from "../empty_states/empty_state_comment.svelte";
+ import EmptyStateDescription from "../empty_states/empty_state_description.svelte";
+ import EmptyStatePhotos from "../empty_states/empty_state_photos.svelte";
import PhotoGallery from "../photo_gallery.svelte";
import ShareInfo from "../share_info.svelte";
import SummitLogTable from "../summit_log/summit_log_table.svelte";
import MapWithElevationMaplibre from "./map_with_elevation_maplibre.svelte";
- import EmptyStateComment from "../empty_states/empty_state_comment.svelte";
- import EmptyStatePhotos from "../empty_states/empty_state_photos.svelte";
- import EmptyStateWaypoint from "../empty_states/empty_state_waypoint.svelte";
- import EmptyStateDescription from "../empty_states/empty_state_description.svelte";
- import { browser } from "$app/environment";
import TrailTimeline from "./trail_timeline.svelte";
interface Props {
@@ -178,7 +176,7 @@
>