Something I just came across because I have a particular long file name that I want to save. So I thought I'd resize the edit panel to make the file name input file larger:
Notice the name input field expands when I resize but not the path. Is that because it's a typedinput field and not just an input field? It would be nice if the path field also expanded for long file paths ...
There are still quite a few CSS oddities in Editor config panels to be honest and too many fixed pixel sizes. I've taken to using my own CSS for my own nodes.
Not just CSS oddities either, field placements are not consistent.
For example the Name field is generally at the top of a node config dialog, but for some nodes, eg debug, it's at the bottom & for some such as http-request its not even visible without scrolling down.
And in contrib nodes: @flowfuse/node-red-dashboard radio-group has options value and label
while button-group has label before value
To be fair, that is down to the node designer. I put the name towards the bottom if it isn't very important to the node. UX would dictate that the most important fields should generally be at the top.
The default styling could certainly do with a brush-up though. There is still a lot of "boiler-plate" inline styling and several styles use px sizing. A boost to modern grid/flex styles along with the use of LightningCSS to control browser support limits really would save every node developer a lot of time and effort.
Re Name placement - Originally (way back) - we mostly placed the Name field at the bottom of the panel - because (as @TotallyInformation points out) the name already had a default and was more optional for users to customise...
Over time that changed as a) we wanted to encourage users to set the name to make finding nodes easier and b) because panels got so large the name moved off the bottom... so they started to migrate position to the top instead...
But yes - a long term chore would be to go through all the core nodes and make them more consistent (as far as possible) - and better use CSS styles, and position of name filed (see other thread) - etc....
My only pause is that modifying the default styling of the TypedInput will have wide-ranging impacts wherever it is used - and it's used in lots of places. There is a high potential for this fix causing undesirable side-effects we then spend lots of time squashing. As much as inline css is distasteful, that may be the safer option to address the specific request relating to the file nodes.
Would you pick this up as a routine fix for the next release? I mean if this is a one-line inline CSS fix that would probably be appreciated by others ... at least no one has come out and said "no, I want to keep the old behaviour" (if so, then now is the time!)
The inject node has 2 typedInput fields side-by-side that do not correctly overflow.
My recommendation would be to add the calculated width to .red-ui-typedInput-container without the !important and then slowly go through the existing nodes to remove the manual sizing unless needed. That should be entirely safe.
There's a quick pragmatic fix for 4.1.x to get this done quickly. There's a bigger piece of work for it to be done properly - which will need prioritising against all of the other work.