Move onTitleClick

This commit is contained in:
Luc Mcgrady 2025-08-07 21:21:04 +01:00
parent 2d60471f36
commit bcab1f6d31
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -25,23 +25,17 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
style:--container-margin="0"
>
<div class="position-relative">
{#if onTitleClick}
<span
on:click={onTitleClick}
on:keydown={onTitleClick}
role="button"
tabindex="0"
>
<h1>
{title}
</h1>
</span>
{:else}
<h1>
{title}
</h1>
{/if}
<div class="help-badge position-absolute" class:rtl>
<h1>
{title}
</h1>
<div
on:click={onTitleClick}
on:keydown={onTitleClick}
role="button"
tabindex="0"
class="help-badge position-absolute"
class:rtl
>
<slot name="tooltip" />
</div>
</div>