fix: 修正布局溢出 - 侧边栏 fixed 160px, 主内容 max-width calc(100vw-160px), 消除右侧超出

This commit is contained in:
lt
2026-04-27 12:10:31 +08:00
parent fb99241a0f
commit d9ffcb5840
+1 -1
View File
@@ -89,7 +89,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="currentPage === 'topics'" style="margin-left: 160px; width: calc(100vw - 160px); padding: 0 20px; box-sizing: border-box; overflow-x: auto;"> <div v-if="currentPage === 'topics'" style="margin-left: 160px; width: 100%; max-width: calc(100vw - 160px); padding: 0 20px; box-sizing: border-box; overflow-x: auto;">
<div class="flex justify-between items-center mb-6" style="width: 100%;"><h2 class="text-2xl font-bold text-gray-800">📋 选题管理</h2></div> <div class="flex justify-between items-center mb-6" style="width: 100%;"><h2 class="text-2xl font-bold text-gray-800">📋 选题管理</h2></div>
<div class="card mb-6" style="display: inline-block; min-width: fit-content;"><div class="flex flex-wrap gap-2 items-center"> <div class="card mb-6" style="display: inline-block; min-width: fit-content;"><div class="flex flex-wrap gap-2 items-center">
<el-button type="primary" size="small" @click="refreshAll">🔄 批量刷新</el-button> <el-button type="primary" size="small" @click="refreshAll">🔄 批量刷新</el-button>