| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
We already have few @media (max-width) rules in admin css. Why not to use 4 spaces by default and 2 spaces on narrow screens? |
|
@bloatware good idea - I have done a commit with that in place. |
You can do better, use @container queries to only apply a larger tab-size if the container is wide enough. See MDN @container and MDN container-name. Demo here: https://dev.l-c-n.com/txp-4.9/txp-sandspace-spacing-with-tabkey.html (sample code at bottom) |
|
@phiw13 of course, hadn't considered that. I'd not actually used container queries yet (bit late to the party on that one) but your code makes sense - I'll implement later today. |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
{{title}}
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
{{editor}}'s edit
{{editor}}'s edit
Uh oh!
There was an error while loading. Please reload this page.
We are trying to decide if 2 spaces, 3 spaces, or 4 spaces would be a good length for tabbed indents in the text editor and code editor panels of Textpattern - see issue #1628 for further context. Considering the potentially narrow width these sections can be when on smaller device viewports.
11 votes ·