I have an lightning component and I am Using it in two different record detail page ,One on main page and other in small side bar. My component is compatible with the main bar,But when I placed my component in side bar Designs are collapsed. Please check the image below.
Update: Show and hide class working based on window size, While i am checking it with preview app Those classes are working fine if i reduce window size, But on side bar It's consider full window size.
<div class="demo-only demo-visibility"> <table width="100%" class="slds-show_medium"> </table> </div>