Closed shamseen closed 3 years ago
Hello there, @shamseen ,
Thank you for your interest in working with our products, and for using the issue template <3. This is actually not a bug. It is expected behavior since the product was taught in mind to have the Sidebar, which is the main feature of it. To solve this, you can either (I would go with the second option, as the second option keeps the nice gray background)
main-content
class as well, so
<div id="main-panel" className="main-panel" ref="mainPanel">
will become
<div id="main-panel" ref="mainPanel">
.main-panel {
transition: none !important;
width: 100% !important;
}
I will close the issue, since, as said above, it was expected behavior for removing the sidebar component.
Best, Manu
Thanks for responding so quickly!
Where do I put the css? Inline styling nor adding it to line 437 in light-bootstrap-dashboard-react.css changed anything.
Hello again, @shamseen ,
Create a new css file inside src/assets/css
named shamseen.css
, so now, you should have the file like so src/assets/css/shamseen.css
. After that, you go inside src/index.js
file, and at line 28, you add:
import "./assets/css/shamseen.css";
Now, you go inside the src/assets/css/shamseen.css
file, and add the css from my last comment.
You are good to go.
Best, Manu
Perfect thank you!!
Version
1.3.0
Reproduction link
https://jsfiddle.net/
Operating System
Windows 10
Device
PC
Browser & Version
Chrome x64 v87.0.4280.66
Steps to reproduce
What is expected?
div class='main-panel' will resize to fill screen.
What is actually happening?
Area of sidebar is still present, just empty. Dev tools doesn't show this blank space as a separate component.
Solution
Additional comments