|
|
|
@ -181,16 +181,21 @@ |
|
|
|
<div class="flex items-center space-x-2 md:min-w-52 min-w-8"> |
|
|
|
<div class="flex items-center space-x-2 md:min-w-52 min-w-8"> |
|
|
|
{#if isIndexEvent} |
|
|
|
{#if isIndexEvent} |
|
|
|
{#if publicationType === "blog"} |
|
|
|
{#if publicationType === "blog"} |
|
|
|
<!-- Blog view: disabled when showing blog list, active when viewing article --> |
|
|
|
<!-- Blog view: hidden when showing blog list, shows back arrow when viewing article --> |
|
|
|
<Button |
|
|
|
{#if !($publicationColumnVisibility.blog && !$publicationColumnVisibility.inner)} |
|
|
|
class={`btn-leather !w-auto ${$publicationColumnVisibility.inner ? "active" : ""}`} |
|
|
|
<Button |
|
|
|
outline={true} |
|
|
|
class={`btn-leather !w-auto ${$publicationColumnVisibility.inner ? "active" : ""}`} |
|
|
|
disabled={$publicationColumnVisibility.blog && !$publicationColumnVisibility.inner} |
|
|
|
outline={true} |
|
|
|
onclick={handleBlogTocClick} |
|
|
|
onclick={handleBlogTocClick} |
|
|
|
title={$publicationColumnVisibility.inner ? "Back to Table of Contents" : "Table of Contents"} |
|
|
|
title={$publicationColumnVisibility.inner ? "Back to Table of Contents" : "Table of Contents"} |
|
|
|
> |
|
|
|
> |
|
|
|
<BookOutline class="!fill-none" /> |
|
|
|
{#if $publicationColumnVisibility.inner} |
|
|
|
</Button> |
|
|
|
<CaretLeftOutline class="!fill-none" /> |
|
|
|
|
|
|
|
{:else} |
|
|
|
|
|
|
|
<BookOutline class="!fill-none" /> |
|
|
|
|
|
|
|
{/if} |
|
|
|
|
|
|
|
</Button> |
|
|
|
|
|
|
|
{/if} |
|
|
|
{:else if !$publicationColumnVisibility.discussion} |
|
|
|
{:else if !$publicationColumnVisibility.discussion} |
|
|
|
<Button |
|
|
|
<Button |
|
|
|
class={`btn-leather !w-auto ${$publicationColumnVisibility.toc ? "active" : ""}`} |
|
|
|
class={`btn-leather !w-auto ${$publicationColumnVisibility.toc ? "active" : ""}`} |
|
|
|
|