Skip to content

Commit

Permalink
chore: upgrade vuetify-ui to 3.0.0-beta.12
Browse files Browse the repository at this point in the history
  • Loading branch information
GuMengYu committed Oct 5, 2022
1 parent af6e49e commit 5944473
Show file tree
Hide file tree
Showing 19 changed files with 43 additions and 34 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"vue-tsc": "^0.34.11",
"vue-virtual-scroller": "^2.0.0-alpha.1",
"vue3-slider": "git+https://github.com/GuMengYu/vue3-slider.git",
"vuetify": "3.0.0-beta.10",
"vuetify": "3.0.0-beta.12",
"vuetify-ctx-menu": "git+https://github.com/GuMengYu/vue3-context-menu.git#v0.0.1",
"wavesurfer.js": "^6.2.0",
"webfontloader": "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/main/core/windowManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { WindowState } from '../../renderer/src/util/enum'
import log from './util/log'

export const WindowDefaultSize = {
height: 710,
height: 720,
width: 1200,
minWidth: 393,
minHeight: 600,
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/components/layout/WindowControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</v-icon>
</v-btn>
<v-dialog v-model="showAlert" persistent class="close-modal">
<v-card class="pt-4" rounded="xl" color="surface" width="90vw" max-width="350">
<v-card class="pt-4 align-self-center" rounded="xl" color="surface" width="90vw" max-width="350">
<div class="d-flex justify-center">
<v-icon color="secondary">
{{ mdiExitToApp }}
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/components/skeleton/ListSkeleton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const itemHeight = 56
:style="{
display: 'grid',
gridGap: '5px',
gridTemplateColumns: '[index] 48px [first] 3fr [second] minmax(140px, 1fr)',
gridTemplateColumns: '[index] 48px [first] 3fr [second] minmax(140px, 160px)',
}"
>
<span class="d-flex justify-center">#</span>
Expand Down
8 changes: 4 additions & 4 deletions packages/renderer/src/components/toggle/SearchInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ function handleSearch() {
max-width: 320px;
:deep(.v-field--variant-solo) {
box-shadow: none;
border-radius: 40px;
padding-inline-end: 2px;
// border-radius: 40px;
// padding-inline-end: 2px;
.v-field__input {
padding-top: 0px;
// padding-top: 0px;
font-size: 0.875rem;
font-weight: 500;
}
.v-field__append-inner {
padding-top: 0px;
// padding-top: 0px;
align-items: center;
}
}
Expand Down
5 changes: 2 additions & 3 deletions packages/renderer/src/components/track/TrackItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ async function toggleLike() {
grid-gap: 5px;
align-items: center;
height: 56px;
grid-template-columns: [index] 48px [first] 4fr [last] minmax(140px, 1fr);
grid-template-columns: [index] 48px [first] 4fr [last] minmax(140px, 160px);
&.album-item {
grid-template-columns: [index] 48px [first] 3fr [second] 2fr [last] minmax(140px, 1fr);
grid-template-columns: [index] 48px [first] 3fr [second] 2fr [last] minmax(140px, 160px);
}
&:hover {
background-color: rgba(var(--v-theme-surfaceVariant), 0.5);
Expand Down Expand Up @@ -288,7 +288,6 @@ async function toggleLike() {
}
.track-third {
display: flex;
gap: 16px;
align-items: center;
justify-content: space-between;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/renderer/src/components/track/TrackList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ function toAlbum(id: number) {
.list-header {
display: grid;
grid-gap: 5px;
grid-template-columns: [index] 48px [first] 3fr [second] 2fr [last] minmax(140px, 1fr);
grid-template-columns: [index] 48px [first] 3fr [second] 2fr [last] minmax(140px, 160px);
&.album-header {
grid-template-columns: [index] 48px [first] 4fr [last] minmax(140px, 1fr);
grid-template-columns: [index] 48px [first] 4fr [last] minmax(140px, 160px);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/pages/Album.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function saveCover() {
</CardRow>
</Col>
<v-dialog v-model="showMoreDesc" scrollable>
<v-card rounded="xl" color="surfaceVariant" class="py-4" width="90vw" max-width="450">
<v-card rounded="xl" color="surfaceVariant" class="py-4 align-self-center" width="90vw" max-width="450">
<v-card-title>{{ $t('main.album.desc') }}</v-card-title>
<v-card-text>
{{ state.album['description'] }}
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/pages/Artist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function formatDate(datetime: string | number, format = 'YYYY-MM-DD') {
</card-row>
</Col>
<v-dialog v-model="more.showMoreDesc" :scrollable="true">
<v-card color="surfaceVariant" rounded="xl" class="py-4" width="90vw" max-width="450">
<v-card color="surfaceVariant" rounded="xl" class="py-4 align-self-center" width="90vw" max-width="450">
<v-card-title> {{ $t('main.artist.desc') }}</v-card-title>
<v-card-text>
{{ state.artist['briefDesc'] }}
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/pages/Library.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</v-window-item>
</v-window>
<v-dialog v-model="createState.show">
<v-card width="90vw" max-width="450" rounded="xl" class="py-2">
<v-card width="90vw" max-width="450" rounded="xl" class="py-2 align-self-center">
<v-card-title>{{ $t('main.playlist.new') }}</v-card-title>
<v-card-text>
<v-text-field
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/pages/cloud/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function handleCloseUploadModal() {
</template>
<cloud-list :tracks="clouds" @update-list="(list) => (clouds = [...list])" />
<v-dialog v-model="uploadMusic.visible" persistent class="upload-file-wrapper">
<v-card outlined color="surface" class="pt-4" rounded="lg" width="90vw" max-width="350">
<v-card outlined color="surface" class="pt-4 align-self-center" rounded="lg" width="90vw" max-width="350">
<div class="d-flex justify-center">
<v-icon color="secondary">
{{ mdiCloudUpload }}
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/pages/components/PlayingList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
v-slot="{ item: track, index }"
class="scroller"
:style="{
height: `450px`,
height: `290px`,
}"
:items="nextList"
:item-size="64"
Expand Down
6 changes: 3 additions & 3 deletions packages/renderer/src/pages/components/PlaylistHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function saveCover() {
{{ $tc('message.delete_list', isDelete ? 2 : 1) }}
</v-btn>
</template>
<v-card class="pt-4" rounded="xl" color="surface" width="90vw" max-width="350">
<v-card class="pt-4 align-self-center" rounded="xl" color="surface" width="90vw" max-width="350">
<div class="d-flex justify-center">
<v-icon color="secondary">
{{ mdiDeleteAlert }}
Expand Down Expand Up @@ -250,7 +250,7 @@ function saveCover() {
</span>
</div>
<v-dialog v-model="showEdit" :scrollable="true">
<v-card width="90vw" max-width="450" min-height="300" rounded="xl" class="py-2">
<v-card width="90vw" max-width="450" min-height="300" rounded="xl" class="py-2 align-self-center">
<v-card-title> {{ $t('main.playlist.edit') }} </v-card-title>
<v-card-text>
<v-text-field v-model="editForm.title" variant="outlined" :label="$t('main.playlist.name')"> </v-text-field>
Expand All @@ -264,7 +264,7 @@ function saveCover() {
</v-card>
</v-dialog>
<v-dialog v-model="showMoreDesc" :scrollable="true">
<v-card color="surfaceVariant" width="90vw" max-width="450" rounded="xl" class="py-4">
<v-card color="surfaceVariant" width="90vw" max-width="450" rounded="xl" class="py-4 align-self-center">
<v-card-title>{{ $t('main.playlist.desc') }}</v-card-title>
<v-card-text>
{{ playlist['description'] }}
Expand Down
1 change: 0 additions & 1 deletion packages/renderer/src/pages/components/Track.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ function openMenu(e: MouseEvent) {
}
.track-third {
display: flex;
gap: 16px;
align-items: center;
justify-content: center;
}
Expand Down
9 changes: 8 additions & 1 deletion packages/renderer/src/pages/modal/Login.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<template>
<v-dialog v-model="showLogin" persistent>
<v-card outlined color="surface" class="login-container py-4" rounded="lg" width="90vw" max-width="450">
<v-card
outlined
color="surface"
class="login-container py-4 align-self-center"
rounded="lg"
width="90vw"
max-width="450"
>
<div class="d-flex justify-center">
<v-icon color="secondary" size="large">
{{ mdiLogin }}
Expand Down
4 changes: 2 additions & 2 deletions packages/renderer/src/pages/modal/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ const signOut = () => {
</script>
<template>
<v-dialog v-model="show">
<v-card flat color="surface" width="90vw" max-width="420" rounded="xl">
<v-card flat color="surface" width="50vw" max-width="450" rounded="xl" class="align-self-center">
<div class="px-2 pt-2">
<v-btn icon @click="show = false">
<v-btn icon variant="plain" @click="show = false">
<v-icon> {{ mdiClose }}</v-icon>
</v-btn>
</div>
Expand Down
6 changes: 5 additions & 1 deletion packages/renderer/src/pages/mode/components/lyric.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ const displayAll = ref(false)
</div>

<v-dialog v-model="displayAll" scrollable max-height="70vh">
<v-card color="surfaceVariant" width="45vw" class="text-onSurfaceVariant rounded-lg pa-4 overflow-y-auto">
<v-card
color="surfaceVariant"
width="45vw"
class="text-onSurfaceVariant rounded-lg pa-4 overflow-y-auto align-self-center"
>
<ul class="lyrics-list text-xl-h6 text-lg-subtitle-1">
<li v-for="(item, index) in lyrics" :key="index" :data-time="item.time" v-html="item.sentence"></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/pages/setting/components/Other.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{{ t('message.reset_app') }}
</v-btn>
</template>
<v-card class="pt-4" rounded="xl" color="surface" width="90vw" max-width="350">
<v-card class="pt-4 align-self-center" rounded="xl" color="surface" width="90vw" max-width="350">
<div class="d-flex justify-center">
<v-icon color="secondary">
{{ mdiRestore }}
Expand Down

0 comments on commit 5944473

Please sign in to comment.