Skip to content

Commit

Permalink
fix: back button overlap on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
BuWH authored and ci010 committed Jun 18, 2023
1 parent 885739b commit b276401
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions xmcl-keystone-ui/src/composables/windowStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export function useWindowStyle() {
maximized.value = v
})
const hideWindowControl = computed(() => state.platform.name === 'osx' || (state.platform.name === 'linux' && state.linuxTitlebar))
const shouldShiftBackControl = computed(() => state.platform.name === 'osx')
return {
shouldShiftBackControl,
hideWindowControl,
}
}
6 changes: 5 additions & 1 deletion xmcl-keystone-ui/src/views/AppSystemBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
v-if="back"
class="p-0 flex flex-shrink flex-grow-0"
>
<div
v-if="shouldShiftBackControl"
style="width: 80px"
/>
<v-icon
v-ripple
small
Expand Down Expand Up @@ -101,7 +105,7 @@ defineProps<{
const { appBarColor } = injection(kColorTheme)
const { blurAppBar } = useBarBlur()
const { maximize, minimize, close } = windowController
const { hideWindowControl } = useWindowStyle()
const { shouldShiftBackControl, hideWindowControl } = useWindowStyle()
const { show: showFeedbackDialog } = useDialog('feedback')
const { show: showTaskDialog } = useDialog('task')
const { t } = useI18n()
Expand Down

0 comments on commit b276401

Please sign in to comment.