From 315729d7e8c479277cd8c68efcf2c41069154417 Mon Sep 17 00:00:00 2001
From: yuetsh <517252939@qq.com>
Date: Mon, 9 Mar 2026 21:07:59 +0800
Subject: [PATCH] fix
---
public/style.css | 4 ++
src/oj/problem/detail.vue | 133 ++++++++++++++++++++++++++------------
src/utils/constants.ts | 6 +-
3 files changed, 100 insertions(+), 43 deletions(-)
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) => {
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -155,42 +212,38 @@ 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 {