Skip to content

Commit a81cadf

Browse files
committed
Update nav icon titles to reflect new behavior, & make their title text show even when disabled
1 parent 0cbb649 commit a81cadf

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/renderer/components/top-nav/top-nav.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ export default defineComponent({
9595
},
9696

9797
forwardText: function () {
98-
return this.$t('Forward')
98+
return this.$t('Click to go forward, right-click or hold to see history')
9999
},
100100

101101
backwardText: function () {
102-
return this.$t('Back')
102+
return this.$t('Click to go back, right-click or hold to see history')
103103
},
104104

105105
newWindowText: function () {

src/renderer/components/top-nav/top-nav.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@
5353

5454
.arrowDisabled :deep(.iconButton) {
5555
color: #808080;
56+
background-color: inherit;
5657
opacity: 0.5;
57-
pointer-events: none;
58+
pointer-events: auto;
59+
cursor: default;
5860
user-select: none;
5961
}
6062

61-
.navIcon, :deep(.iconButton) {
63+
.navIcon, :deep(.ftIconButton:not(.arrowDisabled) .iconButton) {
6264
border-radius: 50%;
6365
color: var(--primary-text-color);
6466
cursor: pointer;
@@ -82,7 +84,7 @@
8284
}
8385
}
8486

85-
.topNavBarColor .navIcon, .topNavBarColor :deep(.iconButton) {
87+
.topNavBarColor .navIcon, .topNavBarColor :deep(.ftIconButton:not(.arrowDisabled) .iconButton) {
8688
&:hover {
8789
background-color: var(--primary-color-hover);
8890
}

static/locales/en-US.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Toggle fullscreen: Toggle fullscreen
2727
Window: Window
2828
Minimize: Minimize
2929
Close: Close
30-
Back: Back
31-
Forward: Forward
30+
Click to go back, right-click or hold to see history: Click to go back, right-click or hold to see history
31+
Click to go forward, right-click or hold to see history: Click to go forward, right-click or hold to see history
3232
Open New Window: Open New Window
3333
Go to page: Go to {page}
3434
Close Banner: Close Banner

0 commit comments

Comments
 (0)