From 57ec279491db97d2933f07127235d44e918472ce Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Mon, 29 Mar 2021 12:11:58 +0300 Subject: Move symlink symbol from html to css This should facilitate testing because this symbol will no longer a part of the entry text shown in html. --- data/style.scss | 3 ++- src/renderer.rs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/style.scss b/data/style.scss index 9bfbeaf..be19342 100644 --- a/data/style.scss +++ b/data/style.scss @@ -94,7 +94,8 @@ a.symlink:hover { color: var(--symlink_link_color); } -.symlink-symbol { +.symlink-symbol::after { + content: "⇢"; display: inline-block; border: 1px solid var(--symlink_link_color); margin-left: 0.5rem; diff --git a/src/renderer.rs b/src/renderer.rs index 266f035..c51f364 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -330,7 +330,7 @@ fn entry_row( a.directory href=(parametrized_link(&entry.link, sort_method, sort_order)) { (entry.name) "/" @if entry.is_symlink { - span.symlink-symbol { "⇢" } + span.symlink-symbol { } } } } @else if entry.is_file() { @@ -338,7 +338,7 @@ fn entry_row( a.file href=(&entry.link) { (entry.name) @if entry.is_symlink { - span.symlink-symbol { "⇢" } + span.symlink-symbol { } } } @if let Some(size) = entry.size { -- cgit v1.2.3