diff options
author | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2021-03-29 09:11:58 +0000 |
---|---|---|
committer | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2021-03-29 09:11:58 +0000 |
commit | 57ec279491db97d2933f07127235d44e918472ce (patch) | |
tree | fe35f3f8b00ae747dabf91b061d1dd781d878393 | |
parent | Bring back the symlink symbol (diff) | |
download | miniserve-57ec279491db97d2933f07127235d44e918472ce.tar.gz miniserve-57ec279491db97d2933f07127235d44e918472ce.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | data/style.scss | 3 | ||||
-rw-r--r-- | 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 { |