-
Notifications
You must be signed in to change notification settings - Fork 13
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
Bug: Fix issue with wrapping certificate #585
Conversation
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.
That's odd... on windows for mine everything seems to be fine, do you mind providing me with the width and height, just so I can be sure |
Let's get some other people to test too. |
I think it's not working on Mac. |
Weird that it's no good on Mac. If it works well on Windows, that's the most important (more users on Windows). If we can fix on mac, that would be nice to have. |
@Eakam1007 I think that has something to do with the "Tabs" component |
I tried working on this locally on my Mac, and this seems to do it: diff --git a/app/components/certificate/certificate-display.tsx b/app/components/certificate/certificate-display.tsx
index c80b76a..d499e86 100644
--- a/app/components/certificate/certificate-display.tsx
+++ b/app/components/certificate/certificate-display.tsx
@@ -110,8 +110,9 @@ export default function CertificateDisplay({
<Text
fontFamily="mono"
maxWidth={{ base: '2xs', xs: 'sm', sm: 'md', md: 'full' }}
+ minWidth="max-content"
fontSize={{ base: '3xs', xs: '2xs', sm: 'xs', md: 'md' }}
- css={{ whiteSpace: 'pre-line' }}
+ css={{ whiteSpace: 'pre-line', wordWrap: 'normal' }}
>
{value}
</Text> Here I'm telling it to not wrap text, and also to never go narrower than the content. Does this work? |
It didn't cause any issue when I tested it locally, should I push this code or have some who uses mac try out the changes for themselves? |
If it worked for you, sure, make the changes and add another commit to this PR. |
@SerpentBytes do you mind checking the new commit to see if it works on Mac now? |
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.
It works all good on my Mac. It doesn't break in any viewpoint or different device view.
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.
This issue should close #560
Here's a demo on how it looks
2023-04-12.13-52-19.mp4