fix
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-03-30 22:30:41 -06:00
parent 1df211c760
commit a97a40475a
6 changed files with 53 additions and 15 deletions

View File

@@ -12,7 +12,9 @@
<n-button
v-if="authed"
text
@click="$router.push({ name: 'submissions', params: { page: 1 } })"
@click="
$router.push({ name: 'submissions', params: { page: 1 } })
"
>
<Icon :width="16" icon="lucide:list" />
</n-button>
@@ -24,7 +26,12 @@
<n-tab-pane name="desc" tab="挑战描述" display-directive="show">
<div
class="markdown-body"
style="padding: 12px; overflow-y: auto; height: 100%"
style="
padding: 12px;
overflow-y: auto;
height: calc(100% - 45px);
box-sizing: border-box;
"
v-html="challengeContent"
/>
</n-tab-pane>

View File

@@ -225,10 +225,13 @@ const columns: DataTableColumn<SubmissionOut>[] = [
key: "zone",
width: 42,
render: (row) => {
const map: Record<string, { label: string; type: "success" | "default" | "warning" }> = {
const map: Record<
string,
{ label: string; type: "success" | "default" | "warning" }
> = {
featured: { label: "", type: "success" },
pending: { label: "N", type: "default" },
low: { label: "", type: "warning" },
pending: { label: "N", type: "default" },
low: { label: "", type: "warning" },
}
if (!row.zone || !map[row.zone]) return null
const { label, type } = map[row.zone]