Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eb32676de4
commit
ad2e4a34a2
6 files changed
+210
-138
No files matched your search
@@ -91,10 +91,10 @@ const contestID = route.params.contestID || null
|
||||
// 草稿存在哪个键下(题单入口单独一份),和「重置代码」共用一份算法
|
||||
const storageKey = useDraftKey()
|
||||
|
||||
// 桌面:顶栏 60 + 工具栏 48,协作条再占 40(两栏顶满内容区,见 detail.vue 的 problem-split)。
|
||||
// 桌面:顶栏 56 + 工具栏 48,协作条再占 40(两栏顶满内容区,见 detail.vue 的 problem-split)。
|
||||
// 手机:顶栏两行 + 课堂条 + 页签 + 工具栏约 236px,底部还有「运行例子 / 提交」那条约 64px
|
||||
const editorHeight = computed(() => {
|
||||
const base = isDesktop.value ? 108 : 300
|
||||
const base = isDesktop.value ? 104 : 300
|
||||
return `calc(100vh - ${base + (teacherCollab.value ? 40 : 0)}px)`
|
||||
})
|
||||
|
||||
|
||||
@@ -376,7 +376,7 @@ onBeforeUnmount(() => {
|
||||
.problem-split {
|
||||
margin: -16px;
|
||||
width: calc(100% + 32px);
|
||||
height: calc(100vh - 60px);
|
||||
height: calc(100vh - 56px);
|
||||
}
|
||||
|
||||
/* 分隔线:看上去 1px,拖的时候热区宽一点 */
|
||||
|
||||
Reference in new issue
Block a user