Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix(common): hide horizontal scrollbar in Firefox for URL input (#5906)

Hypo4594e838d40d
diff --git a/packages/hoppscotch-common/src/components/smart/EnvInput.vue b/packages/hoppscotch-common/src/components/smart/EnvInput.vue
index 69253cc46..4138885e6 100644
--- a/packages/hoppscotch-common/src/components/smart/EnvInput.vue
+++ b/packages/hoppscotch-common/src/components/smart/EnvInput.vue
@@ -749,6 +749,11 @@ watch(
@apply flex-shrink-0;
@apply whitespace-nowrap py-4;
+ // Hide horizontal scrollbar for CodeMirror in Firefox (Chrome is handled by global ::-webkit-scrollbar { h-0 })
+ :deep(.cm-scroller) {
+ scrollbar-width: none;
+ }
+
.suggestions {
@apply absolute;
@apply bg-popover;