Beyondspace Posted April 23, 2021 Share Posted April 23, 2021 In the recent updates, the Code Block has recieved an UI update to match the new design of other block such as Summary block, but bad thing is the width size is shrinked down and make it hard to look/edit, so this snippet may help you to increase the width size of code editor block Add it into Settings->Advance->Code Injection <script> if ( window.location !== window.parent.location ) { window.parent.document.querySelector("head").insertAdjacentHTML("beforeend", '<style>[data-test="block-editor-container"] { width: 620px !important; }</style>') } </script> joosty, tuanphan, christyprice and 1 other 2 2 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
joosty Posted April 25, 2021 Share Posted April 25, 2021 Yay! Works perfectly. I complained about this silly little editor to SS with the common/comical response "we will forward your suggestion to engineering" (which means trashcan). Outrageous their current design ideas and more and more cumbersome their tool set. Thanks for making it a bit easier for all of us! Beyondspace and creedon 2 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment