-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 long description overflow #466
Conversation
Someone is attempting to deploy a commit to the formbricks Team on Vercel. A member of the Team first needs to authorize it. |
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.
Hey @niteshseram
thanks a lot for your contribution :)
I left two comments in the code.
Regarding your overall solution:
We had the same problem when a Select question had too many options to choose from. We decided to add the scroll to the options instead of the overall widget.
Why did you decide to add the scroll to the complete widget instead of the description field? :)
Thanks! 🙌
@@ -129,7 +129,7 @@ export default function SurveyMenuBar({ | |||
className="w-72 border-white hover:border-slate-200 " | |||
/> | |||
</div> | |||
{localSurvey?.responseRate && ( | |||
{!!localSurvey?.responseRate&& ( |
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.
Have you tested this?
I'm sceptical this "&&" operator works without the space.
And why did you invest this?
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.
@jobenjada This is a file That I didn't touch. Not sure, how this got pushed. Will revert this
We can use that approach as well. But don't you think there will be too many scroll bars on one screen? Question and description doesn't limit, so there will be scroll for both again and there will be scroll for many options again. |
4426b86
to
7b835c9
Compare
Added scroll in JS Widget and remove the scroll from multiple choice questions @jobenjada |
Hi @jobenjada, Fixed the above-mentioned issues. Thanks |
@mattinannt ready to merge 🚀 |
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.
@niteshseram thanks a lot for this fix 🎉💪 Let's merge it into main 😊
* Fix issue 427 * Address review comment * jump back to top on long questions * add to JS widget --------- Co-authored-by: Seram Nitesh Singh <nitesh.s@auzmor.com> Co-authored-by: Johannes <johannes@formbricks.com>
* Fix issue 427 * Address review comment * jump back to top on long questions * add to JS widget --------- Co-authored-by: Seram Nitesh Singh <nitesh.s@auzmor.com> Co-authored-by: Johannes <johannes@formbricks.com>
* Fix issue 427 * Address review comment * jump back to top on long questions * add to JS widget --------- Co-authored-by: Seram Nitesh Singh <nitesh.s@auzmor.com> Co-authored-by: Johannes <johannes@formbricks.com>
What does this PR do?
The preview in Link Survey and In-App Survey was not having any scroll behavior when the description or title are too long and it overflowed. This PR fixes those issues.
Fixes #427
Type of change
pnpm build
console.logs
git pull origin main