Skip to content

Commit

Permalink
Merge branch 'pr/383' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Feb 22, 2022
2 parents 9f7a159 + aa386d3 commit 8d7e518
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 8 deletions.
Binary file modified build/kint.phar
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/compiled/aante-light.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/compiled/original.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/compiled/rich.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/compiled/solarized-dark.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/compiled/solarized.css

Large diffs are not rendered by default.

24 changes: 21 additions & 3 deletions resources/js/rich.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,29 @@ if (typeof window.kintRich === 'undefined') {
')' +
kintRich.mktag('/title') +
kintRich.mktag('meta charset="utf-8"') +
document.getElementsByClassName('kint-rich-script')[0].outerHTML +
document.getElementsByClassName('kint-rich-style')[0].outerHTML +
/**
* `tag.getAttribute('nonce')` doesn't work for security reasons.
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce#accessing_nonces_and_nonce_hiding.
*/
kintRich.mktag(
'script class="kint-rich-script" nonce="' +
kintRich.script.nonce +
'"'
) +
kintRich.script.innerHTML +
kintRich.mktag('/script') +
/**
* `tag.getAttribute('nonce')` doesn't work for security reasons.
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce#accessing_nonces_and_nonce_hiding.
*/
kintRich.mktag(
'style class="kint-rich-style" nonce="' + kintRich.style.nonce + '"'
) +
kintRich.style.innerHTML +
kintRich.mktag('/style') +
kintRich.mktag('/head') +
kintRich.mktag('body') +
'<input style="width: 100%" placeholder="Take some notes!">' +
'<input class="kint-note-input" placeholder="Take some notes!">' +
'<div class="kint-rich">' +
kintContainer.parentNode.outerHTML +
'</div>' +
Expand Down
4 changes: 4 additions & 0 deletions resources/sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -505,3 +505,7 @@ $caret-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5
font-weight: bold;
}
}

input.kint-note-input {
width: 100%;
}

0 comments on commit 8d7e518

Please sign in to comment.