fix: remove obsolete map share toggle and make public desktop entries openable

Map permission is always enabled on new links (share always includes map).
Removed the toggle from the share settings UI since the map is now always
part of the combined timeline+map view with no standalone value in toggling it.

Desktop entry cards on the public share page now open MobileEntryView on click,
matching the mobile behaviour added in #826.
This commit is contained in:
jubnl
2026-04-22 16:33:04 +02:00
parent 82cce365f7
commit 45a5b4e588
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -2941,7 +2941,6 @@ function JourneyShareSection({ journeyId }: { journeyId: number }) {
{[ {[
{ key: 'share_timeline' as const, label: t('journey.share.timeline'), icon: List }, { key: 'share_timeline' as const, label: t('journey.share.timeline'), icon: List },
{ key: 'share_gallery' as const, label: t('journey.share.gallery'), icon: Grid }, { key: 'share_gallery' as const, label: t('journey.share.gallery'), icon: Grid },
{ key: 'share_map' as const, label: t('journey.share.map'), icon: MapPin },
].map(({ key, label, icon: Icon }) => ( ].map(({ key, label, icon: Icon }) => (
<button <button
key={key} key={key}
+1 -1
View File
@@ -317,7 +317,7 @@ export default function JourneyPublicPage() {
)} )}
{/* Content */} {/* Content */}
<div className="px-5 pt-4 pb-5"> <div className="px-5 pt-4 pb-5 cursor-pointer" onClick={() => setViewingEntry(entry)}>
{/* Title (only when no single photo — photo has it in overlay) */} {/* Title (only when no single photo — photo has it in overlay) */}
{photos.length !== 1 && entry.title && ( {photos.length !== 1 && entry.title && (
<h3 className="text-[16px] font-semibold text-zinc-900 dark:text-white tracking-tight leading-snug mb-2">{entry.title}</h3> <h3 className="text-[16px] font-semibold text-zinc-900 dark:text-white tracking-tight leading-snug mb-2">{entry.title}</h3>