ui: fix chartsize & copy button position (#313)

This commit is contained in:
pandadtdyy authored and GitHub committed 2022-03-09 17:38:03 +08:00
1 parent 723ad4951f
commit ad3a0c48aa
2 files changed
+9 -3

No files matched your search

@@ -26,15 +26,15 @@ code
white-space: pre
.sample > .toolbar
right: 0.7em !important
top: 3.7em !important
right: 0.9375em !important
top: 3.7875em !important
.toolbar
position: absolute
white-space: no-wrap
right: 0 !important
top: 0 !important
padding: rem(5px)
padding: rem(5px) 0
opacity: 1 !important
background: rgba($syntax-hl-bg-color, 0.8)
font-family: $primary-font-family
@@ -45,6 +45,7 @@ code
a
font-size: large !important
border-radius: 0px !important
background: none !important
[data-syntax-hl-show-line-number]
pre
@@ -250,6 +250,11 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
type: 'bar',
}],
});
window.onresize = function () {
statusChart.resize();
scoreChart.resize();
}
}
$(document).on('click', '[name="problem-sidebar__open-scratchpad"]', (ev) => {