From 7c30d4896b915ce19874f2ede56cfc08582216ea Mon Sep 17 00:00:00 2001 From: undefined Date: Fri, 6 Jan 2023 02:27:04 +0800 Subject: [PATCH] ui: contest_problemlist: update style --- packages/ui-default/pages/contest.page.styl | 33 ++++++++++++++++++- .../templates/components/problem.html | 6 +++- .../templates/contest_problemlist.html | 3 ++ 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/packages/ui-default/pages/contest.page.styl b/packages/ui-default/pages/contest.page.styl index 04a53bb2c..395275d1a 100644 --- a/packages/ui-default/pages/contest.page.styl +++ b/packages/ui-default/pages/contest.page.styl @@ -113,7 +113,11 @@ $highlight-button-color = #F6DF45 width: rem(150px) .col--submit-at - width: rem(150px) + width: rem(130px) + text-align: center + + &.nojs .col--submit-at + width: rem(160px) .col--problem border-left: 1px solid $table-border-color @@ -122,6 +126,33 @@ $highlight-button-color = #F6DF45 .col--submit-at display: none + +tablet() + .col--time, + .col--memory, + .col--lang + display: none + + +mobile() + .col--time, + .col--memory, + .col--submit-at, + .col--lang + display: none + + .col--submit-by + display: none + + .record_main__table + .col--status + width: rem(170px) + + .col--time, .col--memory, .col--lang + width: rem(95px) + text-align: center + + .col--lang + border-right: 1px solid $table-border-color + .page--contest_scoreboard .main diff --git a/packages/ui-default/templates/components/problem.html b/packages/ui-default/templates/components/problem.html index efad65ef0..d682988f0 100644 --- a/packages/ui-default/templates/components/problem.html +++ b/packages/ui-default/templates/components/problem.html @@ -6,7 +6,11 @@ {%- endif -%} {%- if pdoc.domainId !== handler.args.domainId -%}{{ pdoc.domainId }}#{%- endif -%} -{{ pdoc.pid or ('P'+pdoc.docId if pdoc.domainId === handler.args.domainId else pdoc.docId) }} +{% if page_name == 'contest_problemlist' and tdoc %} + {{ String.fromCharCode(65 + tdoc.pids.indexOf(pdoc.docId)) if tdoc.pids.includes(pdoc.docId) else '#' }} +{% else %} + {{ pdoc.pid or ('P'+pdoc.docId if pdoc.domainId === handler.args.domainId else pdoc.docId) }} +{% endif %} {%- if not small -%}  {{ pdoc.title }}{%- endif -%} {%- if not invalid -%} diff --git a/packages/ui-default/templates/contest_problemlist.html b/packages/ui-default/templates/contest_problemlist.html index 9df5f6cfa..84374a0c3 100644 --- a/packages/ui-default/templates/contest_problemlist.html +++ b/packages/ui-default/templates/contest_problemlist.html @@ -57,6 +57,9 @@
+
+

{{ _('Submissions') }}

+
{% if not canViewRecord %} {{ nothing.render('According to the contest rules, you cannot view your submission details at current.') }}'