mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 11:12:54 +02:00
fix: back button position
This commit is contained in:
parent
f54cacfedc
commit
7c12dbd301
2 changed files with 14 additions and 12 deletions
|
@ -5,7 +5,7 @@ import GoBackIcon from '@/assets/icons/go-back.svg';
|
|||
<button
|
||||
id="back-button"
|
||||
class="hidden"
|
||||
lg="fixed left-[max(2.5rem,calc(50vw-37.5rem))] top-24 block aspect-square w-4.5 c-secondary/40 transition-colors ease-out hover:c-secondary/80 active:scale-90!"
|
||||
lg="absolute left--10 top-3.8 block aspect-square w-4.5 c-secondary/40 transition-colors ease-out hover:c-secondary/80 active:scale-90!"
|
||||
aria-label="Go back"
|
||||
>
|
||||
<GoBackIcon
|
||||
|
|
|
@ -107,6 +107,7 @@ const { Content, headings, remarkPluginFrontmatter } = await render(post)
|
|||
supportedLangs={supportedLangs}
|
||||
>
|
||||
<article class="heti mb-12.6">
|
||||
<div class="relative">
|
||||
<!-- Go Back Button On Desktop -->
|
||||
<BackButton />
|
||||
<!-- Title -->
|
||||
|
@ -118,6 +119,7 @@ const { Content, headings, remarkPluginFrontmatter } = await render(post)
|
|||
{post.data.title}
|
||||
</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<!-- Date -->
|
||||
<div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue