sidewayss / html-elements

Autonomous custom HTML elements with external template files
MIT License
0 stars 0 forks source link

new oppo boolean attribute/property: no-align-input/alignInput #14

Open sidewayss opened 1 week ago

sidewayss commented 1 week ago

I have already flip-flopped on this, so it's time to make it an option. Spreadsheets actually have two different way to input numbers:

The reason I originally aligned keyboard input to the left, was that it allowed the user to take advantage of the empty space taken up by the confirm buttons (when not hovering), and the space taken up by any units too. It's often nice to have the extra space in the input for adding something before deleting something else. Anyway, this could be a new option that un-aligns only during keyboard input.

There is a no-align/autoAlign attribute/property that applies regardless of focus. This new feature would allow you to right-align the display but left-align keyboard input.