Skip to content

Commit 190be77

Browse files
authored
fix(ui): increase target size of back button (#3325)
1 parent a51f8f1 commit 190be77

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

app/components/main/MainContent.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@ const containerClass = computed(() => {
3535
'backdrop-blur': !getPreferences(userSettings, 'optimizeForLowPerformanceDevice'),
3636
}"
3737
>
38-
<div flex justify-between px5 py2 :class="{ 'xl:hidden': $route.name !== 'tag' }" class="native:xl:flex" border="b base">
39-
<div flex gap-3 items-center :overflow-hidden="!noOverflowHidden ? '' : false" py2 w-full>
40-
<NuxtLink
41-
v-if="backOnSmallScreen || back" flex="~ gap1" items-center btn-text p-0 xl:hidden
38+
<div flex justify-between gap-2 min-h-53px px5 py1 :class="{ 'xl:hidden': $route.name !== 'tag' }" class="native:xl:flex" border="b base">
39+
<div flex gap-2 items-center :overflow-hidden="!noOverflowHidden ? '' : false" w-full>
40+
<button
41+
v-if="backOnSmallScreen || back"
42+
btn-text flex items-center ms="-3" p-3 xl:hidden
4243
:aria-label="$t('nav.back')"
4344
@click="$router.go(-1)"
4445
>
45-
<div i-ri:arrow-left-line class="rtl-flip" />
46-
</NuxtLink>
46+
<div text-lg i-ri:arrow-left-line class="rtl-flip" />
47+
</button>
4748
<div :truncate="!noOverflowHidden ? '' : false" flex w-full data-tauri-drag-region class="native-mac:justify-start native-mac:text-center">
4849
<slot name="title" />
4950
</div>

app/components/nav/NavTitle.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,16 @@ router.afterEach(() => {
3333
{{ $t('app_name') }} <sup text-sm italic mt-1>{{ env === 'release' ? 'alpha' : env }}</sup>
3434
</div>
3535
</NuxtLink>
36-
<div
37-
hidden xl:flex items-center me-8 mt-2 gap-1
38-
>
39-
<CommonTooltip :content="$t('nav.back')">
40-
<NuxtLink
36+
<div hidden xl:flex items-center me-6 mt-2 gap-1>
37+
<CommonTooltip :content="$t('nav.back')" :distance="0">
38+
<button
39+
type="button"
4140
:aria-label="$t('nav.back')"
42-
:class="{ 'pointer-events-none op0': !back || back === '/', 'xl:flex': $route.name !== 'tag' }"
41+
btn-text p-3 :class="{ 'pointer-events-none op0': !back || back === '/', 'xl:flex': $route.name !== 'tag' }"
4342
@click="$router.go(-1)"
4443
>
45-
<div text-xl i-ri:arrow-left-line class="rtl-flip" btn-text />
46-
</NuxtLink>
44+
<div text-xl i-ri:arrow-left-line class="rtl-flip" />
45+
</button>
4746
</CommonTooltip>
4847
</div>
4948
</div>

0 commit comments

Comments
 (0)