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

Search box doesn't fit in overlays on mobile #2369

Closed
lindapaiste opened this issue Aug 8, 2023 · 10 comments · Fixed by #3149
Closed

Search box doesn't fit in overlays on mobile #2369

lindapaiste opened this issue Aug 8, 2023 · 10 comments · Fixed by #3149

Comments

@lindapaiste
Copy link
Collaborator

Increasing Access

It will look a lot better on mobile devices.

Feature enhancement details

image

@dewanshDT I came across a place where we could really use a <MediaQuery> in the JS. It should be quick if you want to do it. In the Overlay component we sometimes pass in a search box through an actions prop. It doesn't fit on small screens. We should make it so that the actions is only rendered in its current position on large screens. Then on small screens we would place the {actions} below the header, between lines 91 </header> and 92 {children}.

<header className="overlay__header">
<h2 className="overlay__title">{title}</h2>
<div className="overlay__actions">
{actions}
<button
className="overlay__close-button"
onClick={this.close}
aria-label={this.props.t('Overlay.AriaLabel', { title })}
>
<ExitIcon focusable="false" aria-hidden="true" />
</button>
</div>
</header>
{children}
</section>

Just change that one part of it. Making the tables fit will be fixed by #2368 and converting Overlay to a function component will be fixed by #2309.

It may need a wrapper div with some margin or padding, which we would render only if actions is present. But that's less important. You could do it or not bother. It will be a huge improvement just to make everything fit!

@KSSaiTeja
Copy link

could you please assign this to me. i have prior knowledge about this issue. i an very much interested to work on this issue

@KSSaiTeja
Copy link

i am interested to work on this issue @lindapaiste please assign this to me

@shauryag2002
Copy link

Hi @dewanshDT , It seems like you are working on this issue quite long time,
if not able to do it !
Can @lindapaiste assign it to me?

@lindapaiste
Copy link
Collaborator Author

@KSSaiTeja feel free to work on it. Here's the documentation for the <MediaQuery> component: https://www.npmjs.com/package/react-responsive

@KSSaiTeja
Copy link

yeah thanks for the suggestion, i have fixed the issue and will raise a PR in a moment.. please review it and merge my PR please.. it will be more motivation for me..

@KSSaiTeja
Copy link

@lindapaiste i have two pending PR's in this repo.. please review them and merge them.. it will be more motivational to me towards contribute more for the p5.js organisation..! 😄

@Praveen03AJJARAPU
Copy link

Can you please assign me the issue? I am a beginner at contributing, this will help me to enter into the contributions.

@KSSaiTeja
Copy link

Hello @catarak

I hope you're doing well. I wanted to kindly request your assistance with something important. I've recently submitted two pull requests, each addressing specific issues within the p5.js-web-editor project. Your expertise and guidance in reviewing and potentially merging these PRs would be immensely appreciated.

Your feedback and support are not only valuable but also greatly motivating for me to continue contributing to the p5.js-web-editor project. Your insights will help enhance the overall quality of the codebase.

Thank you very much for taking the time to consider my requests. Your assistance means a lot to me, and I'm looking forward to your feedback.

Warm regards,

K S Sai Teja.

@KSSaiTeja
Copy link

@lindapaiste you assigned this issue to me. but till now you haven't reviewed my PR. please review my PR.

@KrishavRajSingh
Copy link

is this open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment