Open
Description
Description
The command box was long for the box, users needs to scroll horizontally to see the entire command. This is inconvenient because users couldn't see the full command at once.
https://layer5.io/cloud-native-management/meshery/getting-started
issue-1.2.mp4
Expected Behavior
Making the box wider so the entire command fits without scrolling
16-fix.mp4
Screenshots
Environment:
- Host OS:
- Browser:
Contributor Resources and Handbook
The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master
branch.
- 📚 See contributing instructions.
- 🎨 Wireframes and designs for Layer5 site in Figma (open invite)
- 🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack.
Join the Layer5 Community by submitting your community member form.
Activity
Jeffrin2005 commentedon May 24, 2025
Good First issue.
divyansh-prks commentedon May 24, 2025
can i take this issue ?
huzfm commentedon May 25, 2025
Can this be assigned to me
vr-varad commentedon May 26, 2025
@ashok-2003 You could work on this
ashok-2003 commentedon May 26, 2025
I think this might break on smaller screens. Should we consider allowing the code to wrap into multiple lines to accommodate the full command? @vr-varad
vr-varad commentedon May 26, 2025
ur call make a pr with this and lets see what can be done next
ashok-2003 commentedon May 26, 2025
sure :)
ashok-2003 commentedon May 27, 2025
how this looks to you ? @vr-varad ,
Screen.Recording.2025-05-27.014112.mp4
vr-varad commentedon May 27, 2025
it would be good if u open the pr to review what changes u made @ashok-2003
leecalcote commentedon May 27, 2025
@LibenHailu, we don't need this line-wrapped. Sticking with one line is ideal. It's ok if the overflow isn't visible. The scrollbar height can be cut in half and/or removed instead.
LibenHailu commentedon May 27, 2025
Hi @leecalcote, I am having an issue with my laptop It is crashing when I try to run the project, I think the behavior is on chrome, It looks good on firefox, I think the behavior emerges from Highlight component, maybe @ashok-2003 have you tried it with the default props if it looks good we can stick to that, it should look something like this
import Highlight, { defaultProps } from "prism-react-renderer"; <Highlight {...defaultProps} theme={theme} code={code} language="jsx">
ashok-2003 commentedon May 29, 2025
Hey @LibenHailu, for the issue you're facing, you might want to check the Slack conversation — it could be helpful. Also, thanks for your suggestion! I'll try implementing it and let you know how it goes.
LibenHailu commentedon May 29, 2025
Thank you @ashok-2003!