You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contracts source code is displayed with ignorance of line numbers. On different screen resolutions the same source code might have different total lines occupied.
# What ❔
This PR preserves the lines and line numbers in contract view, so that
the code lines don't break into the next line on smaller screens.
When the screen is smaller, the lines are horizontally scrollable.
<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->
## Why ❔
PR ensures that the line number always corresponds to the correct line.
Previously, on smaller screens, lines would break to the next line,
causing a mismatch between lines and line numbers.
This is a fix for this issue:
#327
<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->
## Checklist
<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->
- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
🐛 Bug Report
Contracts source code is displayed with ignorance of line numbers. On different screen resolutions the same source code might have different total lines occupied.
🔄 Reproduction Steps
Check https://sepolia.explorer.zksync.io/address/0x0000000000000000000000000000000000000000#contract. Notice the first file has 15 lines numbered and occupies exactly these 15 lines, now change resolution to 480px and notice that now the code takes more lines.
🤔 Expected Behavior
The number of lines occupied by contract source code should be static and always the same, horizontal scroll should be shown.
😯 Current Behavior
The number of lines occupied by contract source code is different based on resolution.
The text was updated successfully, but these errors were encountered: