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

Ticket-#597 - Reference Hover #701

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Conversation

zarSou9
Copy link
Contributor

@zarSou9 zarSou9 commented Jun 7, 2024

Ok so I think I've done it, except its a little bit janky. i.e. in order to get the height consistent and correct, instead of editing the dangerouslyPastedHTML I've just set the overflow: hidden, and set the height of the contents div to be one which generally doesn't seem to clip words.

also, @melissasamworth I made a design decision to put the reference popup below the number (instead of above, which is on the figma), because I feel like it generally clips off less often because I notice I am more likely to be reading stuff at the top of the screen. I also like that the curser is closer to the title and link when its below. Anywho, I can change it if you disagree.

bla.mov

@@ -78,7 +78,10 @@ const QuestionInput = ({
}

return (
<div className={'widget-ask ' + (fixed ? 'fixed col-10' : 'col-9')} ref={clickDetectorRef}>
<div
className={'widget-ask ' + (fixed ? 'fixed col-10 z-index-4' : 'col-9')}
Copy link
Collaborator

Choose a reason for hiding this comment

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

would z-index-1 suffice? i.e. use the smallest possible value

Copy link
Contributor

@melissasamworth melissasamworth left a comment

Choose a reason for hiding this comment

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

Looks amazing!

  • I think your design decision makes sense.
  • Bonus in the future is that it goes above or below based on user's scroll position
  • Now for the height, I was just envisioning that we didn't have a static height, and the height was just as long as it needed to be. I think I would prefer that but I'm cool to use this and then test it as users and see how we feel.

@melissasamworth melissasamworth merged commit fa47b90 into stampy-redesign Jun 7, 2024
1 check passed
@melissasamworth melissasamworth deleted the Ticket-#597 branch June 7, 2024 17:56
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