diff --git a/public/style.css b/public/style.css index e87b3f4..9238828 100644 --- a/public/style.css +++ b/public/style.css @@ -7,6 +7,10 @@ z-index: 100 !important; } +.md-editor-preview img { + height: auto; +} + .md-editor-preview h1 { font-size: 1.6rem !important; } diff --git a/src/oj/problem/detail.vue b/src/oj/problem/detail.vue index b4a86ac..515de7b 100644 --- a/src/oj/problem/detail.vue +++ b/src/oj/problem/detail.vue @@ -117,9 +117,66 @@ watch(isMobile, (value) => { diff --git a/src/utils/constants.ts b/src/utils/constants.ts index feb8f26..7436a72 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -239,9 +239,9 @@ export const CODE_TEMPLATES = { } as const export enum ScreenMode { - both = "题目 | 自测", - code = "仅自测", - problem = "仅题目", + both = "双栏", + code = "自测", + problem = "题目", } export enum ChartType {