npm-chart icon indicating copy to clipboard operation
npm-chart copied to clipboard

ability to remove header on embed

Open SuperchupuDev opened this issue 5 months ago • 2 comments

It would be nice to be able to have the embed show the stats of a package without the header (which shows information such as the name, description of the package and other buttons) so that only the chart itself is displayed. The reason is that it's redundant on project pages that already show you the package name and description, and you can't reliably omit the header in css since its height isn't fixed

iframe in wide screen, header doesn't increase height, all good

Image

iframe in not wide screen, header increases height, as a result you can't see the slider since the iframe was set to a fixed height

Image

SuperchupuDev avatar Jul 25 '25 21:07 SuperchupuDev

I see, would you be up to make a PR @SuperchupuDev ?

atinux avatar Jul 31 '25 14:07 atinux

certainly can try 👍

SuperchupuDev avatar Jul 31 '25 14:07 SuperchupuDev