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: status icon not showing on mobile #153

Merged
merged 2 commits into from
Dec 16, 2024
Merged

fix: status icon not showing on mobile #153

merged 2 commits into from
Dec 16, 2024

Conversation

Xaroz
Copy link
Contributor

@Xaroz Xaroz commented Dec 16, 2024

Fixed an issue that caused the icons to not show for mobile screens

  • The culprit is the absolute position on the icon span, that anchors to the main table relative (Kinda weird that it worked before). All the icons would absolute position to the center of the table
  • Removed absolute position on the icon, added a small width to the LinkCell so that it can display the icon

IMG_6387

Copy link

vercel bot commented Dec 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperlane-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 6:11pm

Comment on lines 102 to 104
<LinkCell id={msgId} base64={base64} tdClasses="w-8">
{statusIcon && (
<span className="-translate-y-1/2 transform">
Copy link
Contributor Author

@Xaroz Xaroz Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are not using absolute positioning anymore, it would cause borders to be missing, that is why I moved this condition like this

@Xaroz Xaroz changed the title fix: remove icon absolute position, set cell with a width fix: status icon not showing on mobile Dec 16, 2024
@Xaroz Xaroz merged commit d188025 into main Dec 16, 2024
6 checks passed
@Xaroz Xaroz deleted the fix/table-icon-position branch December 16, 2024 18:20
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.

2 participants