Forum Discussion
Increase size of workarea on SPFX Workbench.aspx
In "src" directory of porject there is ".scss" file. You can add styles here, whether you want to add new or override existing styles. In "helloWorld" sample project ".scss" file path is probably "helloworld-webpart\src\webparts\helloWorldHelloWorld.module.scss".
I hope this will help.
- Cardinal_NightDec 03, 2020Brass Contributor
Waqar Muneer This doesn't make the workbench placeholder bigger it only makes the container bigger using scss. If you make the container bigger than the workbench it the sides of the container will disappear, which is no good. If you know of a way to make the workbench place holder bigger then please do share.
- Dec 03, 2020
Cardinal_Night check out this web part, hope it can help you.
https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/js-workbench-customizerYou can just add it to your workbench page and carry on working. It will force the workbench to the same size of a normal SharePoint page, and you can also edit the page and change the web part settings to make it full width. It's not the perfect solution, but hope it can help you
- Cardinal_NightDec 03, 2020Brass Contributor
Joel Rodrigues Is it a case of simply copying code into the root webparts .ts file?
If it's too complicated I'll probably struggle!