Skip to content

Commit

Permalink
Update nav icon titles to reflect new behavior, & make their title te…
Browse files Browse the repository at this point in the history
…xt show even when disabled
  • Loading branch information
kommunarr committed Jun 4, 2024
1 parent 0cbb649 commit a81cadf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/top-nav/top-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ export default defineComponent({
},

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

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

newWindowText: function () {
Expand Down
8 changes: 5 additions & 3 deletions src/renderer/components/top-nav/top-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@

.arrowDisabled :deep(.iconButton) {
color: #808080;
background-color: inherit;
opacity: 0.5;
pointer-events: none;
pointer-events: auto;
cursor: default;
user-select: none;
}

.navIcon, :deep(.iconButton) {
.navIcon, :deep(.ftIconButton:not(.arrowDisabled) .iconButton) {
border-radius: 50%;
color: var(--primary-text-color);
cursor: pointer;
Expand All @@ -82,7 +84,7 @@
}
}

.topNavBarColor .navIcon, .topNavBarColor :deep(.iconButton) {
.topNavBarColor .navIcon, .topNavBarColor :deep(.ftIconButton:not(.arrowDisabled) .iconButton) {
&:hover {
background-color: var(--primary-color-hover);
}
Expand Down
4 changes: 2 additions & 2 deletions static/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Toggle fullscreen: Toggle fullscreen
Window: Window
Minimize: Minimize
Close: Close
Back: Back
Forward: Forward
Click to go back, right-click or hold to see history: Click to go back, right-click or hold to see history
Click to go forward, right-click or hold to see history: Click to go forward, right-click or hold to see history
Open New Window: Open New Window
Go to page: Go to {page}
Close Banner: Close Banner
Expand Down

0 comments on commit a81cadf

Please sign in to comment.