Compare commits
No commits in common. "cf01aa26b1add1acc4ae0d15ce9685b9bfadff8c" and "dc773b14ffb69283450e198360e3b6c05b39f428" have entirely different histories.
cf01aa26b1
...
dc773b14ff
2 changed files with 7 additions and 18 deletions
|
@ -31,21 +31,17 @@
|
|||
on:keydown={keydown}
|
||||
>
|
||||
<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
|
||||
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="px-4 text-2xl font-medium" id="modal-title">
|
||||
<div class="mb-3 flex items-center justify-between">
|
||||
<h3 class="text-2xl" id="modal-title">
|
||||
<slot name="title" />
|
||||
</h3>
|
||||
<button class="px-3 py-2" on:click={onClose}
|
||||
<button on:click={onClose}
|
||||
><CloseIcon class="h-10 w-10 fill-current" /></button
|
||||
>
|
||||
</div>
|
||||
<div class="p-4">
|
||||
<slot />
|
||||
</div>
|
||||
<slot />
|
||||
<!--<div
|
||||
class="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"
|
||||
>
|
||||
|
|
|
@ -67,19 +67,12 @@
|
|||
|
||||
{#if breadcrumbsModalOpen}
|
||||
<Modal onClose={() => (breadcrumbsModalOpen = false)}>
|
||||
<svelte:fragment slot="title">Breadcrumbs</svelte:fragment>
|
||||
<ol class="h-full w-full">
|
||||
{#each $pageBreadcrumbs as crumb, index}
|
||||
<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}
|
||||
<li>
|
||||
<a
|
||||
href={inject(routes.Page, { worldId, pageId: crumb })}
|
||||
on:click={() => ((breadcrumbsModalOpen = false), true)}
|
||||
class="w-full overflow-hidden text-ellipsis whitespace-nowrap py-2 pl-4 text-lg"
|
||||
class="flex items-center text-ellipsis whitespace-nowrap p-4"
|
||||
class:active-breadcrumb={crumb === pageId}
|
||||
>{$crumbsTitles[index] || crumb}</a
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue