mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12: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"
|
style:--container-margin="0"
|
||||||
>
|
>
|
||||||
<div class="position-relative">
|
<div class="position-relative">
|
||||||
{#if onTitleClick}
|
<h1>
|
||||||
<span
|
{title}
|
||||||
|
</h1>
|
||||||
|
<div
|
||||||
on:click={onTitleClick}
|
on:click={onTitleClick}
|
||||||
on:keydown={onTitleClick}
|
on:keydown={onTitleClick}
|
||||||
role="button"
|
role="button"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
|
class="help-badge position-absolute"
|
||||||
|
class:rtl
|
||||||
>
|
>
|
||||||
<h1>
|
|
||||||
{title}
|
|
||||||
</h1>
|
|
||||||
</span>
|
|
||||||
{:else}
|
|
||||||
<h1>
|
|
||||||
{title}
|
|
||||||
</h1>
|
|
||||||
{/if}
|
|
||||||
<div class="help-badge position-absolute" class:rtl>
|
|
||||||
<slot name="tooltip" />
|
<slot name="tooltip" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue