mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Move onTitleClick
This commit is contained in:
parent
2d60471f36
commit
bcab1f6d31
1 changed files with 11 additions and 17 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue