Skip to content

Commit

Permalink
adding overflow-x auto to codeblocks (#2270)
Browse files Browse the repository at this point in the history
  • Loading branch information
GottZ authored Mar 22, 2024
1 parent e37f730 commit cab92a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ export default class DataviewPlugin extends Plugin {
component: Component | MarkdownPostProcessorContext,
sourcePath: string
) {
el.style.overflowX = "auto";
this.api.execute(source, el, component, sourcePath);
}

Expand All @@ -228,6 +229,7 @@ export default class DataviewPlugin extends Plugin {
component: Component | MarkdownPostProcessorContext,
sourcePath: string
) {
el.style.overflowX = "auto";
this.api.executeJs(source, el, component, sourcePath);
}

Expand Down

0 comments on commit cab92a6

Please sign in to comment.