Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions electron/main/window/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import icon from "../../../public/icons/favicon.png?asset";
const getDefaultOptions = (): BrowserWindowConstructorOptions => ({
width: 1280,
height: 800,
minWidth: 800,
minHeight: 600,
minWidth: 1280,
minHeight: 800,
autoHideMenuBar: true,
show: false,
backgroundColor: nativeTheme.shouldUseDarkColors ? "#101014" : "#f6f6f6",
Expand Down
16 changes: 8 additions & 8 deletions src/components/layout/NavHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ const onMenuSelect = (key: string): void => {
</script>

<template>
<div class="flex items-center flex-1 h-full app-drag-region">
<div class="flex items-center justify-between flex-1 h-full min-w-0 app-drag-region">
<!-- 左侧 -->
<div class="flex items-center gap-3 shrink-0">
<div class="flex items-center gap-2 sm:gap-3 min-w-0 shrink-0">
<SButton
class="app-no-drag"
class="app-no-drag shrink-0"
variant="tertiary"
circle
:size="40"
Expand All @@ -71,7 +71,7 @@ const onMenuSelect = (key: string): void => {
<template #icon><IconLucideChevronLeft /></template>
</SButton>
<SButton
class="app-no-drag"
class="app-no-drag shrink-0"
variant="tertiary"
circle
:size="40"
Expand All @@ -83,7 +83,7 @@ const onMenuSelect = (key: string): void => {
<NavSearch />
<SButton
v-if="update.hasUpdate"
class="app-no-drag"
class="app-no-drag shrink-0"
variant="tertiary"
circle
:size="40"
Expand All @@ -95,13 +95,13 @@ const onMenuSelect = (key: string): void => {
</SButton>
</div>
<!-- 中间 -->
<div class="flex-1 h-full" />
<div class="flex-1 h-full min-w-4" />
<!-- 右侧 -->
<div class="flex items-center gap-3 shrink-0">
<div class="flex items-center gap-2 sm:gap-3 shrink-0">
<NavUser />
<SDropdownMenu :items="menuItems" @select="onMenuSelect">
<template #trigger>
<SButton class="app-no-drag" variant="tertiary" circle :size="40">
<SButton class="app-no-drag shrink-0" variant="tertiary" circle :size="40">
<template #icon><IconLucideSettings /></template>
</SButton>
</template>
Expand Down
1 change: 1 addition & 0 deletions src/components/layout/NavSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ onMounted(() => {
</script>

<template>
<!-- 搜索框触发器与听歌识曲 -->
<div class="flex items-center gap-2 shrink-0">
<div
role="button"
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const playerBarInnerClass = computed(() => {
<template>
<!-- 主界面 -->
<div
class="h-screen flex bg-app text-on-surface transition-[transform,opacity] duration-500 ease-[cubic-bezier(0.7,0,0.3,1)] origin-center"
class="h-screen flex overflow-hidden bg-app text-on-surface transition-[transform,opacity] duration-500 ease-[cubic-bezier(0.7,0,0.3,1)] origin-center"
:class="isPlayerExpanded ? 'scale-95 opacity-0 pointer-events-none' : ''"
>
<!-- 侧边栏 -->
Expand Down
1 change: 1 addition & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ html[data-appearance-style="image"] [role="alertdialog"] .bg-field {
/* 滚动条 */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}

::-webkit-scrollbar-track {
Expand Down