Skip to content

Conversation

@csillag
Copy link
Contributor

@csillag csillag commented Sep 3, 2025

This is an alternate implementation of #2178, which keeps the border around the hover highlight, at the cost of losing one pixel around every address, and 1px of misalignment.

See screenshots at #2178.

@github-actions
Copy link

github-actions bot commented Sep 3, 2025

Deployed to Cloudflare Pages

Latest commit: 157d0e54ed60ac647b7a3bad618a9a913c06144c
Status:✅ Deploy successful!
Preview URL: https://cc3f9508.oasis-explorer.pages.dev
Alias: https://pr-2182.oasis-explorer.pages.dev

@csillag
Copy link
Contributor Author

csillag commented Sep 4, 2025

Decision from @donouwens:

from what I can see and understand, I think option 2 is the most reliable, scalable, and solves the UX purpose best.

So, this PR is the one that survives the culling.

@csillag csillag force-pushed the csillag/simplify-hover-highlight-but-keep-border branch from ad34efb to 04a144f Compare September 4, 2025 10:30
@csillag csillag marked this pull request as ready for review September 4, 2025 10:31
@csillag csillag self-assigned this Sep 4, 2025
Earlier we had some difficulty about padding/margin about addresses
that we might want to highlight on hover, because we wanted a bubble around
the highlighted part. Unfortunately this makes correct spacing
next to impossible, so now we are giving it up.

From now, hover highlight will simply change the background, and nothing else.

This makes all workaround unnecessary.

Also, fix some more vertical alignment issues around links,
so that everything lines up nicely.
 - Always use "whatever" for props, instead of {'whatever'}
@csillag csillag force-pushed the csillag/simplify-hover-highlight-but-keep-border branch from 04a144f to 157d0e5 Compare September 4, 2025 16:06
@csillag csillag enabled auto-merge September 4, 2025 16:08
@csillag csillag merged commit e11e4e6 into master Sep 4, 2025
9 checks passed
@csillag csillag deleted the csillag/simplify-hover-highlight-but-keep-border branch September 4, 2025 16:08
@csillag csillag restored the csillag/simplify-hover-highlight-but-keep-border branch September 4, 2025 16:15
@csillag csillag deleted the csillag/simplify-hover-highlight-but-keep-border branch September 4, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants