Skip to content

Commit

Permalink
fix: preserve line numbers in contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
tx-nikola committed Dec 4, 2024
1 parent 198b1ff commit 668e8d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/app/src/components/SolidityEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ function focusEditor() {
.prism-editor__line-numbers {
@apply h-max;
}
.prism-editor__container {
@apply overflow-x-scroll;
}
.prism-editor__editor {
@apply text-nowrap;
}
}
}
</style>
3 changes: 3 additions & 0 deletions packages/app/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ module.exports = {
maxWidth: "1240px",
},
},
".text-nowrap": {
textWrap: "nowrap",
},
});
},
],
Expand Down

0 comments on commit 668e8d5

Please sign in to comment.