From 668e8d5773b3f180021f0a4bebc1e579d5a8accd Mon Sep 17 00:00:00 2001 From: Nikola Pavlov <144679078+tx-nikola@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:17:18 +0100 Subject: [PATCH] fix: preserve line numbers in contracts --- packages/app/src/components/SolidityEditor.vue | 8 ++++++++ packages/app/tailwind.config.js | 3 +++ 2 files changed, 11 insertions(+) diff --git a/packages/app/src/components/SolidityEditor.vue b/packages/app/src/components/SolidityEditor.vue index 538aa35966..52ad41f04a 100644 --- a/packages/app/src/components/SolidityEditor.vue +++ b/packages/app/src/components/SolidityEditor.vue @@ -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; + } } } diff --git a/packages/app/tailwind.config.js b/packages/app/tailwind.config.js index 28d9ad07bb..7047b87827 100644 --- a/packages/app/tailwind.config.js +++ b/packages/app/tailwind.config.js @@ -48,6 +48,9 @@ module.exports = { maxWidth: "1240px", }, }, + ".text-nowrap": { + textWrap: "nowrap", + }, }); }, ],