mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5906] [MERGED] fix(common): hide horizontal scrollbar in Firefox for URL input #5407
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5407
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5906
Author: @Theproudcold
Created: 2/26/2026
Status: ✅ Merged
Merged: 3/2/2026
Merged by: @jamesgeorge007
Base:
patch← Head:fix/long-url-horizontal-scrollbar📝 Commits (2)
3cb1724fix(ui): hide horizontal scrollbar in Firefox for URL inputeec6d51chore: translate comment to English for codebase consistency📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/smart/EnvInput.vue(+5 -0)📄 Description
Description
Currently, long URLs cause a horizontal scrollbar to appear in Firefox because the global ::-webkit-scrollbar rule is WebKit-specific. This PR addresses the issue by applying scrollbar-width: none specifically to single-line CodeMirror instances (URL bar, headers, env variables) via the EnvInput wrapper.
Closes #5900
What's changed
Added scrollbar-width: none to .cm-scroller within the .autocomplete-wrapper.
Used the :deep() selector to ensure the style penetrates the scoped component into the CodeMirror structure.
Focused the fix on EnvInput, which prevents the scrollbar from being hidden in multi-line editors (like the request body or response viewer) where scrolling is still necessary.
Notes to reviewers
This fix specifically targets Firefox users. Since Chrome/Edge already respect the ::-webkit-scrollbar { height: 0 } rule, this change ensures a consistent, clean UI across all modern browsers without affecting the usability of larger text areas.
Summary by cubic
Hide the horizontal scrollbar in Firefox for single-line CodeMirror inputs (URL bar, headers, env vars) while keeping multi-line editor scrollbars, matching Chrome/Edge. Also translate a related comment to English.
Written for commit
eec6d51471. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.