mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-29 05:43:56 +08:00
fix: 修复配置页面无法滚动问题
This commit is contained in:
@@ -24,17 +24,16 @@ export default {
|
|||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #2c3e50;
|
color: #2c3e50;
|
||||||
width: 100%;
|
min-height: 100vh;
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-content {
|
.app-content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
min-height: 0; /* 允许内容区域收缩 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 登录注册页面的布局 */
|
/* 登录注册页面的布局 */
|
||||||
@@ -47,8 +46,28 @@ export default {
|
|||||||
/* 主要页面的布局 */
|
/* 主要页面的布局 */
|
||||||
.main-layout {
|
.main-layout {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
min-height: 0; /* 允许内容区域收缩 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 添加全局滚动条样式 */
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: #f1f1f1;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: #999;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -21,6 +21,10 @@
|
|||||||
<button class="action-button github-button" @click="openGithubServer">
|
<button class="action-button github-button" @click="openGithubServer">
|
||||||
<i class="icon-github"></i> Github服务端
|
<i class="icon-github"></i> Github服务端
|
||||||
</button>
|
</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">
|
<button class="action-button control-panel-button" @click="enterPanel">
|
||||||
<i class="icon-control-panel"></i> 控制台
|
<i class="icon-control-panel"></i> 控制台
|
||||||
@@ -49,6 +53,10 @@ const openGithubServer = () => {
|
|||||||
window.open('https://github.com/xinnan-tech/xiaozhi-esp32-server', '_blank');
|
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 = () => {
|
const enterPanel = () => {
|
||||||
router.push('/panel');
|
router.push('/panel');
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ const resetConfig = async () => {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.app-container {
|
.app-container {
|
||||||
height: 100%;
|
min-height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: #f5f7fa;
|
background-color: #f5f7fa;
|
||||||
@@ -299,7 +299,9 @@ const resetConfig = async () => {
|
|||||||
max-width: 1000px;
|
max-width: 1000px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 16px 24px;
|
padding: 16px 24px;
|
||||||
overflow: auto;
|
width: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
height: calc(100vh - 120px); /* 减去头部和面包屑的高度 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-title {
|
.page-title {
|
||||||
@@ -313,6 +315,7 @@ const resetConfig = async () => {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group {
|
.form-group {
|
||||||
|
|||||||
Reference in New Issue
Block a user