site

Website's source files.
Log | Files | Refs | Submodules | LICENSE

commit 1ac01d898d9d06e95a43e68435e0b75e47e283d7
parent 692112e55920271174315a582b5379202fecaa87
Author: Ryan Jeffrey <ryan@ryanmj.xyz>
Date:   Mon,  7 Feb 2022 19:34:02 -0800

Fix ls formatting problem

Diffstat:
Mpublic/css/terminal.css | 2+-
Msrc/main/rmjxyz/app.cljs | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/css/terminal.css b/public/css/terminal.css @@ -124,7 +124,7 @@ h4 { text-shadow: 0 0 4px var(--white); } -.ls p { +p.ls { white-space: pre-wrap; } diff --git a/src/main/rmjxyz/app.cljs b/src/main/rmjxyz/app.cljs @@ -53,7 +53,7 @@ (permissions-to-string (js/parseInt (second unixFilePerms))) (permissions-to-string (js/parseInt (nth unixFilePerms 2)))) :numLinks (.-nlink stats) - :fileSize (.-size stats) + :fileSize (gstring/format "%4d" (.-size stats)) :mtime (ls-time (.-mtimeMs stats)) :basename (.basename path file-path) } ;; TODO actually deal with error.