Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uptab setting in https://userstyles.org/styles/37035/github-dark has no effect #543
Comments
|
Hi @the-j0k3r! It's working for me. I think that another style or userscript, there are a lot, is modifying the tab size and overriding the GitHub Dark setting. Try turning them off one-by-one to find the culprit. Please let us know if it's one of ours. |
|
Well, I disabled everything except github-dark cleared cookies, restarted firefox, disabled stylus/re-enabled, and still doesnt work. |
|
Are you using any userscripts? |
|
Oh, and we just changed the default tab setting on userstyles.org to "don't modify" (disabled). They totally messed up the storage, so you'll need to add any customizations every time you install/update a style. |
|
I did |
|
well that works but doesnt work on the tab settings when editing code. edit : the portion on screenshots is the relevant part. |
|
Ahh, you mean only within CodeMirror... From looking at the HTML, it appears that CodeMirror adds a span with however many spaces you have the tab size set to: <span class="cm-tab" role="presentation" cm-text=" "> </span> <!-- tab size 8 -->
<span class="cm-tab" role="presentation" cm-text=" "> </span> <!-- tab size 4 -->
<span class="cm-tab" role="presentation" cm-text=" "> </span> <!-- tab size 2 -->.cm-tab {
display: inline-block;
text-decoration: inherit;
}I don't think there's much we can do about that besides modifying it with javascript. |
|
Any ideas @silverwind? The |
|
You could try |
|
That almost worked... but setting the font size for the .cm-tab {
display: inline !important;
font-size: 0 !important;
}
span.cm-tab:after {
content: attr(cm-text) !important;
display: inline !important;
font-size: 1rem !important;
}I've tried |




Github edit

Gist edit tabs
