mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ui: fix chartsize & copy button position (#313)
This commit is contained in:
1 parent
723ad4951f
commit
ad3a0c48aa
2 files changed
+9
-3
No files matched your search
@@ -26,15 +26,15 @@ code
|
|||||||
white-space: pre
|
white-space: pre
|
||||||
|
|
||||||
.sample > .toolbar
|
.sample > .toolbar
|
||||||
right: 0.7em !important
|
right: 0.9375em !important
|
||||||
top: 3.7em !important
|
top: 3.7875em !important
|
||||||
|
|
||||||
.toolbar
|
.toolbar
|
||||||
position: absolute
|
position: absolute
|
||||||
white-space: no-wrap
|
white-space: no-wrap
|
||||||
right: 0 !important
|
right: 0 !important
|
||||||
top: 0 !important
|
top: 0 !important
|
||||||
padding: rem(5px)
|
padding: rem(5px) 0
|
||||||
opacity: 1 !important
|
opacity: 1 !important
|
||||||
background: rgba($syntax-hl-bg-color, 0.8)
|
background: rgba($syntax-hl-bg-color, 0.8)
|
||||||
font-family: $primary-font-family
|
font-family: $primary-font-family
|
||||||
@@ -45,6 +45,7 @@ code
|
|||||||
a
|
a
|
||||||
font-size: large !important
|
font-size: large !important
|
||||||
border-radius: 0px !important
|
border-radius: 0px !important
|
||||||
|
background: none !important
|
||||||
|
|
||||||
[data-syntax-hl-show-line-number]
|
[data-syntax-hl-show-line-number]
|
||||||
pre
|
pre
|
||||||
|
|||||||
@@ -250,6 +250,11 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
|||||||
type: 'bar',
|
type: 'bar',
|
||||||
}],
|
}],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.onresize = function () {
|
||||||
|
statusChart.resize();
|
||||||
|
scoreChart.resize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('click', '[name="problem-sidebar__open-scratchpad"]', (ev) => {
|
$(document).on('click', '[name="problem-sidebar__open-scratchpad"]', (ev) => {
|
||||||
|
|||||||
Reference in new issue
Block a user