question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Submodule diffs are misaligned

See original GitHub issue

What?

  1. Primary: Prevent center-aligned filenames in submodule diff.
  2. Secondary: If submodule diffs were previously ignored during styling, then reconsider the styling.

Why?

A center-aligned file path listing is not as easy to scan as is a left-aligned file path listing, because similarities in paths are not aligned (as they are in a left-aligned file path listing).

Where?

c8b7cbe (#216)

Screenshot while using Github Refined

Github Refined

Screenshot while using Github

Github

How?

Offending Style: https://github.com/sindresorhus/refined-github/blob/8c1ab3125fcdb5edf4d78e86bca2da30da97ca45/source/refined-github.css#L99-L103

Suggestions: None

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
harshgoel05commented, Jun 15, 2021

image

I’m able to shift the table by overwriting text-align: center; to text-align: left;

:root .file .data table {
	padding: 54px;
	text-align: left !important;
}

But the Submodule taccsite_custom updated 9 files isn’t overwriteable as the class of TACC/Core-CMS@c8b7cbe#diff-00db495ec685cbdb37dc9dfede576323eb49fd5d4156be453590c5b7650bb9e6 and this clashes.

Is this good to go as this is the best which we can get without much complexity I feel? Any suggestions?

0reactions
yakov116commented, Jun 15, 2021

Sure

Read more comments on GitHub >

github_iconTop Results From Across the Web

Submodule diffs are misaligned · Issue #4328 - GitHub
A center-aligned file path listing is not as easy to scan as is a left-aligned file path listing, because similarities in paths are...
Read more >
git submodules - Git diff says subproject is dirty - Stack Overflow
Git diff reports a submodule directory as -dirty even when there are only untracked files in the submodule directory. This is inconsistent with ......
Read more >
Better Git Diff Outputs with Git Submodules - Jamie Tanna
How to get nicer `diff`s when working with submodules. ... either $ git config --global diff.submodule diff # or $ git config --global...
Read more >
Diff for git submodules - Don't Panic
You can run this command at your top level repo and see all changes in that repo plus submodule(s) or cd into a...
Read more >
Submodule Changes for Bitbucket - StiltSoft Docs
While working with Git submodules, there's a common problem with showing changes that are made to the submodule in the Diff tab. It...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found