]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/display.py
Zfill percent done to 3 places
[lightcards.git] / lightcards / display.py
index 2b4a51fa868a0e6acc388ead17f7c0bd551fe18d..b1e6022728fd0102d2b7a173983d4ed23cdcd797 100644 (file)
@@ -322,7 +322,7 @@ class Display:
         else:
             percent = str(
                 round(self.obj.index / (len(self.stack) - 1) * 100)
-            ).zfill(2)
+            ).zfill(3)
 
         # Print yellow if starred
         if self.current_card().starred:
@@ -477,8 +477,8 @@ class Display:
             )
 
         self.win.hline(1, 0, curses.ACS_HLINE, mcols)
-        self.disp_bar()
         self.disp_sidebar()
+        self.disp_bar()
 
     def current_card(self):
         """Get current card object"""
@@ -552,7 +552,7 @@ class Display:
 
             if i > mlines - 6:
                 for i in range(19):
-                    self.win.addch(mlines - 3, left + i, " ")
+                    self.win.addch(mlines - 4, left + i, " ")
 
                 self.win.addstr(
                     mlines - 4,