fix: 修复配置页面无法滚动问题

This commit is contained in:
TOM88812
2025-02-16 23:13:08 +08:00
parent 68ab05b220
commit fc85225fd5
3 changed files with 36 additions and 6 deletions
+8
View File
@@ -21,6 +21,10 @@
<button class="action-button github-button" @click="openGithubServer">
<i class="icon-github"></i> Github服务端
</button>
<button class="action-button github-button" @click="openGithubWeb">
<i class="icon-github"></i> Web客户端
</button>
<button class="action-button control-panel-button" @click="enterPanel">
<i class="icon-control-panel"></i> 控制台
@@ -49,6 +53,10 @@ const openGithubServer = () => {
window.open('https://github.com/xinnan-tech/xiaozhi-esp32-server', '_blank');
};
const openGithubWeb = () => {
window.open('https://github.com/TOM88812/xiaozhi-web-client', '_blank');
};
const enterPanel = () => {
router.push('/panel');
};
+5 -2
View File
@@ -283,7 +283,7 @@ const resetConfig = async () => {
<style scoped>
.app-container {
height: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
background-color: #f5f7fa;
@@ -299,7 +299,9 @@ const resetConfig = async () => {
max-width: 1000px;
margin: 0 auto;
padding: 16px 24px;
overflow: auto;
width: 100%;
overflow-y: auto;
height: calc(100vh - 120px); /* 减去头部和面包屑的高度 */
}
.page-title {
@@ -313,6 +315,7 @@ const resetConfig = async () => {
border-radius: 4px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
.form-group {