Skip to content

Commit a1401f1

Browse files
Improve spacing of file paths in zones
Signed-off-by: Jacob Stopak <[email protected]>
1 parent 28e2f78 commit a1401f1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

git_sim/git_sim_base_command.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def vsplit_frame(self):
468468
def setup_and_draw_zones(
469469
self,
470470
first_column_name="Untracked files",
471-
second_column_name="Working directory modifications",
471+
second_column_name="Working directory mods",
472472
third_column_name="Staging area",
473473
reverse=False,
474474
):
@@ -507,7 +507,7 @@ def setup_and_draw_zones(
507507
(self.camera.frame.get_left()[0], horizontal.get_start()[1], 0),
508508
dash_length=0.2,
509509
color=self.fontColor,
510-
).shift(m.RIGHT * 6.5)
510+
).shift(m.RIGHT * 8)
511511
vert2 = m.DashedLine(
512512
(
513513
self.camera.frame.get_right()[0],
@@ -517,7 +517,7 @@ def setup_and_draw_zones(
517517
(self.camera.frame.get_right()[0], horizontal.get_start()[1], 0),
518518
dash_length=0.2,
519519
color=self.fontColor,
520-
).shift(m.LEFT * 6.5)
520+
).shift(m.LEFT * 8)
521521

522522
if reverse:
523523
first_column_name = "Staging area"
@@ -530,8 +530,7 @@ def setup_and_draw_zones(
530530
font_size=28,
531531
color=self.fontColor,
532532
)
533-
.align_to(self.camera.frame, m.LEFT)
534-
.shift(m.RIGHT * 0.65)
533+
.move_to((vert1.get_center()[0] - 4, 0, 0))
535534
.shift(m.UP * self.zone_title_offset)
536535
)
537536
secondColumnTitle = (
@@ -551,8 +550,7 @@ def setup_and_draw_zones(
551550
font_size=28,
552551
color=self.fontColor,
553552
)
554-
.align_to(self.camera.frame, m.RIGHT)
555-
.shift(m.LEFT * 1.65)
553+
.move_to((vert2.get_center()[0] + 4, 0, 0))
556554
.align_to(firstColumnTitle, m.UP)
557555
)
558556

@@ -926,7 +924,7 @@ def draw_dark_ref(self):
926924
self.prevRef = refRec
927925

928926
def trim_path(self, path):
929-
return (path[:5] + "..." + path[-15:]) if len(path) > 20 else path
927+
return (path[:15] + "..." + path[-15:]) if len(path) > 30 else path
930928

931929
def get_remote_tracking_branches(self):
932930
remote_refs = [remote.refs for remote in self.repo.remotes]

0 commit comments

Comments
 (0)