修改audio-visualizer的位置

This commit is contained in:
fsy
2025-03-22 15:34:01 +08:00
parent 1cbb2653a6
commit eb4ffc7761

View File

@@ -35,6 +35,7 @@
@close="clearError" @close="clearError"
width="80%" width="80%"
center center
class="chat-dialog"
> >
<div class="error-content"> <div class="error-content">
<p>{{ error }}</p> <p>{{ error }}</p>
@@ -180,6 +181,8 @@ export default {
padding: 16px; padding: 16px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative;
z-index: 10; /* Ensure messages appear above the visualizer */
} }
.empty-state { .empty-state {
@@ -194,7 +197,7 @@ export default {
.visualizer-container { .visualizer-container {
position: absolute; position: absolute;
bottom: 20px; bottom: 58px; /* Moved up by 1cm (approximately 38px) */
left: 0; left: 0;
right: 0; right: 0;
display: flex; display: flex;
@@ -212,6 +215,11 @@ export default {
color: #ff4d4f; color: #ff4d4f;
} }
/* Ensure dialog appears above the visualizer */
:deep(.chat-dialog) {
z-index: 100;
}
@media (max-width: 768px) { @media (max-width: 768px) {
.chat-header h1 { .chat-header h1 {
font-size: 20px; font-size: 20px;