diff --git a/src/components/SwipeCards/index.vue b/src/components/SwipeCards/index.vue index 8164fb5..0723107 100644 --- a/src/components/SwipeCards/index.vue +++ b/src/components/SwipeCards/index.vue @@ -42,7 +42,7 @@ > {{ item.photoName }} @@ -98,7 +98,12 @@ watch( ); // 触摸状态 -const touchState = ref({ startX: 0, startY: 0, moving: false, isClickCandidate: false }); +const touchState = ref({ + startX: 0, + startY: 0, + moving: false, + isClickCandidate: false, +}); const touchStart = (e, index) => { if (index !== 0 || animatingOut.value) return; diff --git a/src/components/SwipeCards/styles/index.scss b/src/components/SwipeCards/styles/index.scss index 17fc7c0..a4a4a09 100644 --- a/src/components/SwipeCards/styles/index.scss +++ b/src/components/SwipeCards/styles/index.scss @@ -35,9 +35,6 @@ } .album-title { - background: linear-gradient( - 180deg, - rgba(0, 0, 0, 0) 0%, - rgba(0, 0, 0, 0.6) 100% - ); + background: rgba(0, 0, 0, 0.5); + height: 20px; }