FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.41k stars 637 forks source link

Add Tab Size Configuration #1499

Closed ZimGil closed 2 years ago

ZimGil commented 2 years ago

This PR will allow the user to specify tab-size for the diff view.

Using tabs looks awful without this configuration (specially in side-by-side view) as it cause the text to be over indented as the default tab-size value is 8.

Before (Tab size default to 8): before

After (Tab size set to 2): after

campersau commented 2 years ago

Thanks! Since tab-size gets inherited it could also be set just once in e.g. the repository.html. In that case it would also affect commit messages. WDYT?

ZimGil commented 2 years ago

Yeah Let's do it... I'll push a change a bit later :)

ZimGil commented 2 years ago

@campersau Would you say this should just go here?: https://github.com/FredrikNoren/ungit/blob/628301f0de022b070efa3a574212c8f43656d351/components/repository/repository.html#L1

campersau commented 2 years ago

Yes, I think that works fine.

ZimGil commented 2 years ago

@campersau I believe it's ready now