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 question header title for extra long text #1393
Conversation
Uhhm, tbh. I also just had a quick look, i think it should suffice to remove the fixed height? The auto-margin does the rest... |
Without padding the description gets quite close to the heading, so currently there is a padding of 14px (44px - 16px -14px) between title and description |
Can't test it anymore currently, but did the description move at all, if you just deactivate the fixed height (on a one-line title)? Cause the title-line itself keeps the 44px due to the actions iirc. Maybe the margin overlaps, but that I can't tell without testing. Edit: |
3a1cd7f
to
32b0fc9
Compare
Thats from
Yes, but then there would be 10px padding between title and description for titles with one line and no padding for titles with multiple lines. I pushed a slightly different version fixing both issues (jumping text and option title), see this screen recording of the changes: voko.mp4 |
So - sorry. Now also found some time to test this.
You're right, i'm fine with that. Can you add it to the checkbox-label, too? Same thing is currently for long-text answers. 🙈 But then, wanna create a PR on the vue-lib for the multi-line label fixes? Better to fix it there, instead of the deep-change. Or should i go for it? |
This comment was marked as spam.
This comment was marked as spam.
Currently the title is set to a fixed height of 44px (used 16px text height + padding around) to fit the menu button on the right. This change allows the header to have multiple lines of text by setting only a minimum height + a fixed padding. And also allows Question options to be longer than one line. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
32b0fc9
to
824abc0
Compare
Done & merged.
@Chartman123 generally i'm with you - might just become difficult with the pill-shaped background. 😞
Yeah, why not - Maybe also the NCRichContent as in the MD-PR. #1394 But then as a separate PR? Let's go on here and release with this fix for now? |
Currently the title is set to a height of 44px (used 14px padding top, 16px text height, 14px padding bottom) to fit the menu button on the right.
This allows the header to have multiple lines of text by setting only a minimum height of 30px + a fixed padding of 14px on the bottom.