Compare commits

..

No commits in common. "cf01aa26b1add1acc4ae0d15ce9685b9bfadff8c" and "dc773b14ffb69283450e198360e3b6c05b39f428" have entirely different histories.

2 changed files with 7 additions and 18 deletions

View file

@ -31,21 +31,17 @@
on:keydown={keydown} on:keydown={keydown}
> >
<div <div
class="h-full w-full overflow-y-auto bg-neutral-100 shadow-xl dark:bg-neutral-900 sm:h-auto sm:w-auto sm:rounded-2xl dark:sm:bg-neutral-800" class="h-full w-full overflow-y-auto rounded-2xl bg-neutral-100 px-5 py-4 shadow-xl dark:bg-neutral-800 sm:h-auto sm:w-auto"
> >
<div <div class="mb-3 flex items-center justify-between">
class="flex items-center justify-between border-b bg-neutral-50 dark:border-neutral-600 dark:bg-neutral-800 dark:sm:bg-neutral-700" <h3 class="text-2xl" id="modal-title">
>
<h3 class="px-4 text-2xl font-medium" id="modal-title">
<slot name="title" /> <slot name="title" />
</h3> </h3>
<button class="px-3 py-2" on:click={onClose} <button on:click={onClose}
><CloseIcon class="h-10 w-10 fill-current" /></button ><CloseIcon class="h-10 w-10 fill-current" /></button
> >
</div> </div>
<div class="p-4">
<slot /> <slot />
</div>
<!--<div <!--<div
class="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" class="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"
> >

View file

@ -67,19 +67,12 @@
{#if breadcrumbsModalOpen} {#if breadcrumbsModalOpen}
<Modal onClose={() => (breadcrumbsModalOpen = false)}> <Modal onClose={() => (breadcrumbsModalOpen = false)}>
<svelte:fragment slot="title">Breadcrumbs</svelte:fragment>
<ol class="h-full w-full"> <ol class="h-full w-full">
{#each $pageBreadcrumbs as crumb, index} {#each $pageBreadcrumbs as crumb, index}
<li <li>
class="flex items-center overflow-hidden text-ellipsis whitespace-nowrap border-b dark:border-neutral-700"
>
{#if index !== 0}
<span aria-hidden="true" class="text-lg"></span>
{/if}
<a <a
href={inject(routes.Page, { worldId, pageId: crumb })} href={inject(routes.Page, { worldId, pageId: crumb })}
on:click={() => ((breadcrumbsModalOpen = false), true)} class="flex items-center text-ellipsis whitespace-nowrap p-4"
class="w-full overflow-hidden text-ellipsis whitespace-nowrap py-2 pl-4 text-lg"
class:active-breadcrumb={crumb === pageId} class:active-breadcrumb={crumb === pageId}
>{$crumbsTitles[index] || crumb}</a >{$crumbsTitles[index] || crumb}</a
> >