Make repo and branch popovers extend up from their trigger buttons (#26950)
Previously, when clicking on the branch, the popover would obscure the button you just clicked, which was awkward. Release Notes: - Improved the placement of the repo and branch picker popovers in the git panel. - Added a 'SelectRepo' action that opens the repository selector in a modal.
This commit is contained in:
parent
a05066cd83
commit
2b2b9c1624
8 changed files with 59 additions and 49 deletions
|
@ -2039,7 +2039,9 @@ impl Repository {
|
|||
|
||||
let mut path = PathBuf::new();
|
||||
path = path.join(worktree_name);
|
||||
path = path.join(project_path.path);
|
||||
if project_path.path.components().count() > 0 {
|
||||
path = path.join(project_path.path);
|
||||
}
|
||||
Some(path.to_string_lossy().to_string())
|
||||
})
|
||||
.unwrap_or_else(|| self.repository_entry.work_directory.display_name())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue