mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 12:01:33 +02:00
fix: back button error and view transition on ios, move scripts from layout to components
This commit is contained in:
parent
783fb958d5
commit
d2ebe60778
4 changed files with 90 additions and 85 deletions
|
@ -39,13 +39,19 @@ const SubtitleTag = isPost ? 'div' : 'h2'
|
|||
'font-bold font-title',
|
||||
]}
|
||||
>
|
||||
<a
|
||||
href={getLocalizedPath('/')}
|
||||
<!-- Fix text cropping issues during view transition on ios by adding a div tag -->
|
||||
<div
|
||||
class="box-content inline-block pr-1"
|
||||
transition:name={`site-title-${currentLang}`}
|
||||
data-disable-transition-on-theme
|
||||
>
|
||||
{headerTitle}
|
||||
<a
|
||||
id="site-title-link"
|
||||
href={getLocalizedPath('/')}
|
||||
>
|
||||
{headerTitle}
|
||||
</a>
|
||||
</div>
|
||||
</TitleTag>
|
||||
|
||||
{headerSubtitle && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue