Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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.

Screen Shot 2020-01-23 at 9 25 30 PM


To quickly and seamlessly allow the user to work in the playground.


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:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

BrandonArmandcommented, Aug 13, 2020

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.

guy-blackcommented, Aug 24, 2020

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.

closed expand open

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found