For me the “starts with”-trick that @Paul_Danyliuk introduced works.
At least for me it works with or without the double quotes.
After a while trying to understand why your code I copy-pasted was not working I noticed few small problems and I managed to make it work.
The form plugin used here changes text not marked as code or preformatted text: double quote pairs to quotation marks and two adjacent dashes to a different kind of dash which explains why I had problems making your code work.
I’m guessing the reason the code was not working for you is one missing double quote after formula_editor--root. The working code should be:
By the way, an easy way to test CSS rules is to inject CSS via Dev tools console like this (I find this easier to copy-paste than using the styles panel or using an extension):
width: auto stops at screen end, unlike the fixed width of 1800px as suggested above. Height still may overflow though. I’m not super versed in CSS to find the bulletproof hack.
also wth would you want your editor to be pink?
UPD: Full script to copy and paste into console when opening the doc:
@Paul_Danyliuk you don’t edit your code with a pink background???
j/k when I am debugging CSS many times I will set background colors on elements which I am targeting to see if I am on target. Much easier to see a white background go pink or red than a margin-top increasing from 12px > 16px.
AND by the way, your CSS is perfect. I’m using it on my machines and have installed it on 3 team members. <3 thank you so much for all the great contributions you keep making to this community and product. This makes this great product even more enjoyable to use!
Oh goodness, it’s far away from perfect. I’m not using it myself actually — Formula editor width jumps all the time when I’m writing my formulas.
I’m not really a front-end dev. Last time I did CSS was back when Bootstrap and jQuery ruled the scene and it was still hip to layout with float: left. However, I have a friend who’s a HTML/CSS pro (and fanatically a freelancer as well, even has his own YouTube channel where he promotes freelancer lifestyle, but it’s in Russian) — I think I’ll just ask him for proper styles somewhere this week.
Thanks for your amazing contributions. +1 on some native fix for the code editor window. I am really amazed there aren’t dozens of people here claiming for this, editing code is a nightmare as it becomes complex, and it usually does!
I have at least one or two columns in every table where I pray to never again having to touch its formula, as it requires full focus, photographic memory, and seven dragon balls to successfully edit them.
Also, almost every button column I create have big formulas where, again, hell unleash its burning flames.
Really, @coda_team, I love your platform but every time I edit code I am remembering your related people. Jokes apart, please take a look into this problem.