diff --git a/components/FriendsMemo.vue b/components/FriendsMemo.vue index bba740c..bd166d9 100644 --- a/components/FriendsMemo.vue +++ b/components/FriendsMemo.vue @@ -614,5 +614,35 @@ const gotouser = () => { border: 2px solid #66d9ef; /* 选中时浅蓝绿色边框 */ } +.aplayer-body { + max-width: 100%; /* 限制宽度不超过父容器 */ + width: 100%; /* 自动调整宽度 */ +} + +.aplayer-pic{ + z-index: 1; +} + +.aplayer-music { + overflow: hidden; + display: inline-block; + align-items: center; + width: 100%; + position: absolute; + animation: scroll 8s linear infinite; +} + +.aplayer-title, .aplayer-author { + padding-right: 10px; +} + +@keyframes scroll { + from { transform: translateX(100%); } + to { transform: translateX(-100%); } +} + +.aplayer-lrc { + margin-top: 25px !important; /* 调整歌词与播放器的间距 */ +} \ No newline at end of file diff --git a/components/MemoInput.vue b/components/MemoInput.vue index 6eab31b..baf4cdc 100644 --- a/components/MemoInput.vue +++ b/components/MemoInput.vue @@ -845,4 +845,36 @@ img{ visibility: visible; opacity: 1; } + +.aplayer-body { + max-width: 100%; /* 限制宽度不超过父容器 */ + width: 100%; /* 自动调整宽度 */ +} + +.aplayer-pic{ + z-index: 1; +} + +.aplayer-music { + overflow: hidden; + display: inline-block; + align-items: center; + width: 100%; + position: absolute; + animation: scroll 8s linear infinite; +} + +.aplayer-title, .aplayer-author { + padding-right: 10px; +} + +@keyframes scroll { + from { transform: translateX(100%); } + to { transform: translateX(-100%); } +} + +.aplayer-lrc { + margin-top: 25px !important; /* 调整歌词与播放器的间距 */ +} + \ No newline at end of file diff --git a/layouts/default.vue b/layouts/default.vue index 33dd21e..b4ebaa8 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -16,7 +16,7 @@ @@ -242,6 +242,7 @@ div.tigger { bottom: 10px; } + @media (min-width: 1024px) { div.tigger { width: calc((100vw - 480px)/2);