-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/ORM-1581 #22
Feature/ORM-1581 #22
Conversation
ORM-1581 Desktop: implement search as modal
We have covered the mobile style when the modal is open (it takes full width/height on mobile), we have to style modal on desktop (>1024px) |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Nice!
Coulpe of comments, but just for we to discuss it later
packages/ui-stencil/src/components/internal/orama-chat-button/orama-chat-button.tsx
Show resolved
Hide resolved
isScrolling = false | ||
prevScrollTop = 0 | ||
scrollTarget = 0 | ||
|
||
handleFocus = () => { |
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.
Nice
showClearChat={false} | ||
/> | ||
<orama-search class={`${globalContext.currentTask === 'search' ? 'section-active' : 'section-inactive'}`} /> | ||
{this.windowWidth <= 1024 && ( |
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.
shouldn't we be using mediaquery insterad?
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.
@rjborba do you mean to hide/show this element via CSS only? Or just to replace 1024 with a variable breakpoint?
I'm using JS here so we can avoid having two times the same element (orama-chat) in the dom.
This is basically the current
orama-modal
|_orama-search
|_**orama-chat** (to show on mobile only)
orama-sliding-panel (this is the slide in panel that we want to display on desktop only)
|_**orama-chat** (desktop only)
:export
directive, that would be otherwise included in the compiled CSS. The:export
is now included in a temporary file that is created during the conversion process and it's deleted at the end of the processPreview