-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
File previews broken due to lack of respect for user's tab-size
#6477
Comments
This is likely a combination of:
|
cc @kidonng |
Hotfixed, no further action required on your part, just wait a few hours |
Caused by refined-github/source/features/tab-size.css Lines 3 to 5 in 154c0f8
overriding <textarea
id="read-only-cursor-text-area"
style="tab-size: <what-you-set-in-your-preference>"
>
Also this is annoying: |
Yeah back then we kept this to cover any situations that GitHub forgot: It seems that they still haven't been fixed. Maybe the new selector is just Some code is also needed to preserve |
It seems that this was reported yesterday but I closed it as unreproducible: |
We only really care tabs in two places:
Oh, maybe action logs? |
I think yeah let's target this, like suggested in my previous comment.
Would be ideal, but I don鈥檛 think it's common to print tabs in the console and especially not expecting them to be 8 characters, so probably it's best to not touch that. |
tab-size
Thanks! |
Description
On XML based languages, Refined GitHub renders the code in weird ways:
Seemingly, it puts in more spacing than is usual, so there is a remain of the code in it's 'usual' state.
Not so sure about this one.
馃摑 Note that this only occurs when selecting text.
Second of all, the text selector can only go to the end of the 'original' black text and not of the white one, so I cannot visually select the whole text.
I have a video of this, but could not upload it to GitHub.
See:
https://riversidevalley-my.sharepoint.com/:v:/g/personal/lamparter_theriversi_de/EdcPsBJFcslMlVmICHSqgK0B_k0xd72Ep1hu9Tk35qFZoA?e=Dieyoo
This video is of https://github.com/files-community/Website/blob/cfcfa9098860261e4433eecc77ae80b2c0e8d281/src/i18n/locales/en-US.json
How to replicate the issue + URL
Seemingly occurs in HTML/XML based languages, such as Svelte, XAML and of course, HTML, as well as JSON (a lot of web languages! but not Ruby); I have used the Refined GitHub feature identifier and it did not identify the problem, however disabling the Refined GitHub extension does fix the problem.
Example: https://github.com/RiversideValley/Website/blob/main/src/app.html
Extension version
23.3.31
Browser(s) used
Microsoft Edge Insider Dev
The text was updated successfully, but these errors were encountered: