benoit, French
@benoit@ruby.social avatar

@joeldrapper I am curious. Why this indentation on litteral gem ? Reminds me of the code from @ioquatix

joeldrapper,
@joeldrapper@ruby.social avatar

@benoit @ioquatix Because tabs are more accessible and because they have semantic meaning that can be parsed and represented in different ways depending on your preferences.

For example, if you are visually impaired, you may need to use a large font size, and you may want to configure your tabs to be 1-character wide. Or you may struggle to follow indentation and want to configure them to be 4 characters wide. It’s up to you. Also see this:

https://github.com/prettier/prettier/issues/7475#issuecomment-668544890

joeldrapper,
@joeldrapper@ruby.social avatar

@benoit @ioquatix cc @camertron out of interest, what would it take to get this added to GitHub? 🙏

:root {
tab-size: var(--tab-size-preference);
}

Somewhere in the layout:
<style>
:root {
--tab-size-preference: <%= @user.tab_size_preference %>
}
</style>

camertron,
@camertron@ruby.social avatar

@joeldrapper @benoit @ioquatix Hmm probably not too hard? I can bring it up with the right team on Monday.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • osvaldo12
  • DreamBathrooms
  • ngwrru68w68
  • Durango
  • mdbf
  • magazineikmin
  • everett
  • thenastyranch
  • rosin
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • tacticalgear
  • JUstTest
  • ethstaker
  • cubers
  • modclub
  • tester
  • InstantRegret
  • GTA5RPClips
  • cisconetworking
  • anitta
  • provamag3
  • Leos
  • normalnudes
  • megavids
  • lostlight
  • All magazines