Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: preserve line numbers in contracts #332

Merged

Conversation

tx-nikola
Copy link
Contributor

@tx-nikola tx-nikola commented Nov 27, 2024

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.

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

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

@tx-nikola tx-nikola added bug Something isn't working frontend Task requires changes to the frontend implementation labels Nov 27, 2024
@tx-nikola tx-nikola self-assigned this Nov 27, 2024
Copy link

github-actions bot commented Nov 27, 2024

API E2E Test Results

207 tests   207 ✅  19s ⏱️
 14 suites    0 💤
  1 files      0 ❌

Results for commit b5760f9.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2024

Unit Test Results

    4 files    263 suites   11m 10s ⏱️
2 125 tests 2 124 ✅ 1 💤 0 ❌
2 337 runs  2 336 ✅ 1 💤 0 ❌

Results for commit b5760f9.

♻️ This comment has been updated with latest results.

Copy link

Visit the preview URL for this PR:
https://staging-scan-v2--pr-332-wof7stzf.web.app

@tx-nikola tx-nikola requested a review from popzxc November 27, 2024 10:07
@popzxc popzxc requested a review from Romsters November 27, 2024 16:04
@popzxc
Copy link
Member

popzxc commented Nov 27, 2024

@Romsters PTAL

@tx-nikola tx-nikola force-pushed the tx-nikola-txfusion-preserve-line-numbers-in-contracts branch from 8a56ada to 668e8d5 Compare December 4, 2024 12:57
@tx-nikola tx-nikola force-pushed the tx-nikola-txfusion-preserve-line-numbers-in-contracts branch from ebbf246 to b5760f9 Compare December 4, 2024 14:48
@tx-nikola tx-nikola merged commit 0b1a667 into main Dec 6, 2024
23 checks passed
@tx-nikola tx-nikola deleted the tx-nikola-txfusion-preserve-line-numbers-in-contracts branch December 6, 2024 09:46
Copy link

github-actions bot commented Dec 6, 2024

🎉 This PR is included in version 2.56.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

karelvuong added a commit to TreasureProject/block-explorer that referenced this pull request Dec 10, 2024
fix: preserve line numbers in contracts (matter-labs#332)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Task requires changes to the frontend implementation released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants