diff --git a/packages/ui-default/components/highlighter/highlighter.page.styl b/packages/ui-default/components/highlighter/highlighter.page.styl index 62cd14c10..8454f7969 100644 --- a/packages/ui-default/components/highlighter/highlighter.page.styl +++ b/packages/ui-default/components/highlighter/highlighter.page.styl @@ -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 diff --git a/packages/ui-default/pages/problem_detail.page.jsx b/packages/ui-default/pages/problem_detail.page.jsx index 65bb1d928..f89bc6021 100644 --- a/packages/ui-default/pages/problem_detail.page.jsx +++ b/packages/ui-default/pages/problem_detail.page.jsx @@ -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) => {