mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix #923
This commit is contained in:
3 files changed
+9
-2
No files matched your search
@@ -85,6 +85,10 @@ for key, value in $contest-color
|
|||||||
color: red;
|
color: red;
|
||||||
&:before
|
&:before
|
||||||
background: red;
|
background: red;
|
||||||
|
&.pending
|
||||||
|
color: cyan;
|
||||||
|
&:before
|
||||||
|
background: cyan;
|
||||||
|
|
||||||
&:after
|
&:after
|
||||||
content: '';
|
content: '';
|
||||||
|
|||||||
@@ -242,9 +242,8 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
|||||||
function ProblemNavigation() {
|
function ProblemNavigation() {
|
||||||
[, setUpdate] = React.useState(0);
|
[, setUpdate] = React.useState(0);
|
||||||
return <div className="contest-problems" style={{ margin: '1em' }}>
|
return <div className="contest-problems" style={{ margin: '1em' }}>
|
||||||
{pids.map((i) => <a href={`#p${i}`} className={ans[i] ? 'pass ' : ''}>
|
{pids.map((i) => <a href={`#p${i}`} className={ans[i] ? 'pending ' : ''}>
|
||||||
<span className="id">{i}</span>
|
<span className="id">{i}</span>
|
||||||
{ans[i] && <span className="icon icon-check"></span>}
|
|
||||||
</a>)}
|
</a>)}
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
@@ -329,6 +328,8 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
|||||||
$('.non-scratchpad--hide').hide();
|
$('.non-scratchpad--hide').hide();
|
||||||
$('.scratchpad--hide').hide();
|
$('.scratchpad--hide').hide();
|
||||||
$('.outer-loader-container').hide();
|
$('.outer-loader-container').hide();
|
||||||
|
$(document).on('click', () => { setUpdate?.((v) => v + 1); });
|
||||||
|
$(document).on('input', () => { setUpdate?.((v) => v + 1); });
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('click', '[name="problem-sidebar__open-scratchpad"]', (ev) => {
|
$(document).on('click', '[name="problem-sidebar__open-scratchpad"]', (ev) => {
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
{% import "components/record.html" as record with context %}
|
{% import "components/record.html" as record with context %}
|
||||||
{% import "components/problem.html" as problem with context %}
|
{% import "components/problem.html" as problem with context %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{{ set(UiContext, 'tdoc', tdoc) }}
|
||||||
|
{{ set(UiContext, 'tsdoc', tsdoc) }}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="medium-9 columns">
|
<div class="medium-9 columns">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
|
|||||||
Reference in new issue
Block a user