1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 23:39:37 +02:00

Merge branch 'development' of github.com:seanmorley15/AdventureLog into development

This commit is contained in:
Sean Morley 2025-05-09 21:31:39 -04:00
commit 9f86688fe9
3 changed files with 33 additions and 2 deletions

View file

@ -117,7 +117,7 @@
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<ul
tabindex="0"
class="menu dropdown-content mt-3 z-[1] p-2 shadow bg-neutral text-neutral-content rounded-box gap-2 w-96"
class="menu dropdown-content mt-3 z-[1] p-2 shadow bg-neutral text-base text-neutral-content rounded-box gap-2 w-96"
>
{#if data.user}
<li>

View file

@ -71,11 +71,28 @@
{#if unlinked}
<div class="badge badge-error">{$t('adventures.out_of_range')}</div>
{/if}
{#if note.content && note.content.length > 0}
<p class="line-clamp-6">
{note.content}
</p>
{/if}
{#if note.links && note.links.length > 0}
<p>
{note.links.length}
{note.links.length > 1 ? $t('adventures.links') : $t('adventures.link')}
</p>
<ul class="list-disc pl-6">
{#each note.links.slice(0, 3) as link}
<li>
<a class="link link-primary" href={link}>
{link.split('//')[1].split('/', 1)[0]}
</a>
</li>
{/each}
{#if note.links.length > 3}
<li></li>
{/if}
</ul>
{/if}
{#if note.date && note.date !== ''}
<div class="inline-flex items-center">

View file

@ -308,6 +308,10 @@
}
}
function changeHash(event) {
window.location.hash = '#' + event.target.value;
}
onMount(() => {
if (data.props.adventure) {
collection = data.props.adventure;
@ -772,7 +776,17 @@
{/if}
{#if collection.id}
<div class="flex justify-center mx-auto">
<select class="select select-bordered border-primary md:hidden w-full"
value={currentView}
on:change={changeHash}
>
<option value="itinerary">📅 Itinerary</option>
<option value="all">🗒️ All Linked Items</option>
<option value="calendar">🗓️ Calendar</option>
<option value="map">🗺️ Map</option>
<option value="recommendations">👍️ Recommendations</option>
</select>
<div class="md:flex justify-center mx-auto hidden">
<!-- svelte-ignore a11y-missing-attribute -->
<div role="tablist" class="tabs tabs-boxed tabs-lg max-w-full">
<!-- svelte-ignore a11y-missing-attribute -->