Skip to content

Conversation

@ashrafmansuri
Copy link
Contributor

Resolved / Related Issues

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Opened Files
  2. Create a soft link in a git repo.
  3. Change to detail layout.
  4. check the information alignment.

@ashrafmansuri
Copy link
Contributor Author

From my observation if (isSymlink) is called before else if (isGitRepo), isGitRepo is true so I have just added a check in the isSymlink block.

@yaira2 yaira2 changed the title Fix : Bug: Soft link file details layout information misaligned #15998 Fix: Fixed issue where soft link details were misaligned in git repos Dec 8, 2024
@yaira2 yaira2 requested a review from hishitetsu December 8, 2024 15:39
@yaira2 yaira2 added the ready for review Pull requests that are ready for review label Dec 8, 2024
@ashrafmansuri
Copy link
Contributor Author

ashrafmansuri commented Dec 8, 2024

The icon is different which can be changed. By adding properties to GitItem(). Hopefully by tomorrow, something's wrong with my VS. Can I get this issue assigned to me? And if any other review please let me know.

Copy link
Member

@hishitetsu hishitetsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still leaves the alignment wrong for shortcut files (.lnk and .url).
I don't believe this approach is correct. The problem is that ShortcutItem doesn't support Git repositories, so we should create something like GitShortcutItem.

@hishitetsu hishitetsu added changes requested Changes are needed for this pull request and removed ready for review Pull requests that are ready for review labels Dec 9, 2024
@0x5bfa
Copy link
Member

0x5bfa commented Dec 9, 2024

@ashrafmansuri Look at my earlier comment #15998 (comment)

@ashrafmansuri
Copy link
Contributor Author

This still leaves the alignment wrong for shortcut files (.lnk and .url).

I don't believe this approach is correct. The problem is that ShortcutItem doesn't support Git repositories, so we should create something like GitShortcutItem.

Alright. Understood.

@ashrafmansuri
Copy link
Contributor Author

@ashrafmansuri Look at my earlier comment #15998 (comment)

Yes I saw that. Your comment helped me a lot. So should I check for isGitRepo before or should I create a new item as suggested by @hishitetsu ?

@0x5bfa
Copy link
Member

0x5bfa commented Dec 9, 2024

Yeah. Create a new class that derives from both ShortcutItem and GitItem named GitShortcutItem while this isn't ideal way.

@ashrafmansuri ashrafmansuri deleted the fix-softlinks-git branch December 9, 2024 17:08
@ashrafmansuri
Copy link
Contributor Author

I'll create a new pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changes requested Changes are needed for this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Soft link file details layout information misaligned

4 participants