Add an expand/hide button on the lesson screen
See original GitHub issue- Bug
- Clean up
- Question
- Enhancement
- Suggestion
- Other
What needs to be done.
A button somewhere in the lesson screen to expand/hide the lesson quickly. It would probably fit best in the top right region.
Why
To quickly and seamlessly allow the user to work in the playground.
How
It will probably be easy to add an icon with font-awesome and use CSS
.icon {
position: absolute;
top: ??;
right: ??;
}
and implement JS/React to manipulate the height of the region. You can also find a better solution.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How To Create a Collapsible - W3Schools
Learn how to create a collapsible section. Collapsible. Click the button to toggle between showing and hiding the collapsible content. Collapsible.
Read more >Collapse or expand parts of a document - Microsoft Support
The ability to collapse and expand content in your document is based on its outline level. You can quickly add an outline level...
Read more >Lesson 5: Using Javascript to Hide and Show Content
In this lesson, you will hide your clock, then add a link that if clicked, will display the clock. Open javascript.html in both...
Read more >Bootstrap Collapse - examples & tutorial
Click the buttons below to show and hide another element via class changes: ... You can use a link with the href attribute,...
Read more >How to Expand and Collapse Elements with Bootstrap 5
You can use the Bootstrap collapse JavaScript plugin to easily show and hide (or expand and collapse) specific elements on a web page....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @AdityaSharma911
The HTML you see is stored in the JavaScript files under the Src folder. You will need to understand React.js, so if you don’t already, I would recommend checking out their website and doing a quick course on how it works.
Hi, this would be my first pull request so sorry if I did anything wrong. I had a lot of trouble trying to pass the secondary panes height as a prop to Info, so I couldn’t have it conditionally render an option to either shrink or expand depending on size like I wanted, so I added 3 icons to Info.js to expand, return to default size, and hide the lesson. after pushing it to my fork I went ahead and opened a pull request. I hope it looks good to you.
https://github.com/BrandonArmand/Binari/pull/57