-
Notifications
You must be signed in to change notification settings - Fork 15
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
Hubble Responsive #1466
Hubble Responsive #1466
Conversation
✅ Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for webb hubble statistic is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for webb hubble statistic is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice job on the responsive breakpoints!
<div> | ||
<a | ||
href={logoLink ? logoLink : '/'} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Logo size="md" /> | ||
</a> | ||
|
||
<div className="mt-11 flex flex-col gap-4"> | ||
{items.map((itemProps, index) => ( | ||
<SideBarItem | ||
key={index} | ||
{...itemProps} | ||
isSidebarOpen={true} | ||
isActive={activeItem === index} | ||
setIsActive={() => setActiveItem(index)} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
|
||
<div className="flex items-center justify-between gap-2 p-2"> | ||
<div className="group flex items-center justify-between"> | ||
<Link href={footer.href} aTagProps={{ target: '_blank' }}> | ||
<footer.Icon | ||
width={24} | ||
height={24} | ||
className="cursor-pointer !fill-mono-100 dark:!fill-mono-60 group-hover:!fill-mono-200 dark:group-hover:!fill-mono-0" | ||
/> | ||
</Link> | ||
|
||
<div className="pl-2"> | ||
<Link href={footer.href} aTagProps={{ target: '_blank' }}> | ||
<Typography | ||
variant="body1" | ||
className="cursor-pointer text-mono-100 dark:text-mono-60 group-hover:text-mono-200 dark:group-hover:text-mono-0" | ||
> | ||
{footer.name} | ||
</Typography> | ||
</Link> | ||
</div> | ||
|
||
{!footer.isInternal ? ( | ||
<div className="pl-[26px]"> | ||
<Link href={footer.href} aTagProps={{ target: '_blank' }}> | ||
<ExternalLinkLine | ||
className="cursor-pointer !fill-mono-100 dark:!fill-mono-60 group-hover:!fill-mono-200 dark:group-hover:!fill-mono-0" | ||
width={24} | ||
height={24} | ||
/> | ||
</Link> | ||
</div> | ||
) : ( | ||
'' | ||
)} | ||
</div> | ||
|
||
<ThemeToggle /> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we reuse the SideBar
component instead of reimplementing it here?
libs/webb-ui-components/src/components/TableAndChartTabs/TableAndChartTabs.tsx
Outdated
Show resolved
Hide resolved
Left some comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add a responsive sidebar to the Hubble Bridge, or alternatively, create an issue for it? This way, we can keep track of it for future reference. Your help is greatly appreciated! 🙏 |
Additionally, there are quite a few warnings and errors appearing on the console. Could you please take a look at these as well? |
@devpavan04 since you are working on the charts for Hubble Stats maybe you can help me take a look at this after this PR got merged! |
@vutuanlinh2k2 just tested the preview link on my tablet & mobile devices. I get these blue lines around the components, can you check on this as well? (I'm on IOS) |
✅ Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for webb hubble statistic is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
@monaiuu I believe this problem is solved in the latest preview link 😊 Can you check the site again! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great work @vutuanlinh2k2 🔥
Summary of changes
Provide a detailed description of proposed changes.
useDarkMode
hooks withuseLocalStorageState
webb-ui-kit
Proposed area of change
Put an
x
in the boxes that apply.apps/bridge-dapp
apps/hubble-stats
apps/stats-dapp
apps/webbsite
apps/faucet
apps/tangle-website
libs/webb-ui-components
Reference issue to close (if applicable)
Specify any issues that can be closed from these changes (e.g. Closes #233).
Screen Recording
If possible provide a screen recording of proposed change.
Screen.Recording.2023-07-27.at.13.38.04.mov
Code Checklist
Please be sure to add .stories documentation if any additions are made to
libs/webb-ui-components
.