Skip to content

Commit

Permalink
Merge branch 'release/6.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Mar 27, 2023
2 parents 60e1008 + 5cc7478 commit f14dd76
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/assets/javascripts/exercise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ function initMathJax(): void {
function initCodeFragments(): void {
const codeElements = document.querySelectorAll("pre code");
codeElements.forEach((codeElement: HTMLElement) => {
const wrapper = codeElement.parentElement;
wrapper.classList.add("code-wrapper");
const copyButton = new CopyButton();
copyButton.codeElement = codeElement;

render(copyButton, codeElement.parentElement, { renderBefore: codeElement });
initTooltips(codeElement);
render(copyButton, wrapper, { renderBefore: codeElement });
});
}

Expand Down
9 changes: 8 additions & 1 deletion app/assets/stylesheets/models/activities.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,15 @@ center img {
}
}

pre {
.code-wrapper {
position: relative;
overflow: hidden;

code {
overflow: auto;
width: 100%;
display: block;
}

d-copy-button {
position: absolute;
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/00_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module Dodona
class Application
module Version
MAJOR = 6
MINOR = 6
PATCH = 10
MINOR = 7
PATCH = 0

STRING = [MAJOR, MINOR, PATCH].compact.join('.')
end
Expand Down

0 comments on commit f14dd76

Please sign in to comment.