Skip to content

Commit

Permalink
feat: Update to use new frag processor render logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
nfnfgo committed Oct 20, 2024
1 parent 7b27522 commit cbf2ec9
Show file tree
Hide file tree
Showing 6 changed files with 356 additions and 247 deletions.
14 changes: 9 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/components/code_block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,12 @@ export function changeDirectionToColumnWhenLargerHeight() {
var msgBlocks = document.querySelectorAll('.mix-message__inner');
Array.from(msgBlocks).forEach(function (block) {
var height = block.offsetHeight;
if (height > 30) {
mditLogger('debug', 'Detected messagebox height:', height);
if (height > 35) {
block.style.flexDirection = 'column';
}
else {
block.style.flexDirection = 'row';
}
});
}
129 changes: 0 additions & 129 deletions src/render/msgpiece_processor.ts

This file was deleted.

Loading

0 comments on commit cbf2ec9

Please sign in to comment.