diff --git a/pywebfs/pywebfs.py b/pywebfs/pywebfs.py index d00d040..bcfd64e 100644 --- a/pywebfs/pywebfs.py +++ b/pywebfs/pywebfs.py @@ -65,8 +65,8 @@ SORT_CSS = '' CSS = f""" html, body {{ - padding-top: 0px; - margin-top: 0px; + padding: 0px; + margin: 0px; }} body {{ background-color: #333; @@ -89,7 +89,7 @@ background-color: #eee; box-shadow: 0 0 20px rgba(0, 0, 0, 0.50); border-spacing: 0; - margin: 1px 10px; + margin: 1px 10px 5px 5px; }} thead {{ position: sticky; @@ -97,10 +97,6 @@ z-index: 2; }} - /* - tr:nth-of-type(even) {{ - background-color: #e7e7f3; - }}*/ tbody tr > td {{ background-color: #eee; z-index: 3; @@ -126,7 +122,6 @@ background-color:#eee; }} td, th {{ - /*vertical-align: top;*/ white-space: nowrap; line-height: 120%; padding-right: 10px; @@ -142,7 +137,7 @@ th.size {{ text-align: right; }} - #files tr td a {{ + #files tr td:first-child a {{ color: #0366d6; padding: 3px 0px 3px 10px; width: 100%; @@ -435,6 +430,10 @@ document.addEventListener('keydown', function(event) { const focusedElement = document.activeElement; + if (document.activeElement.tagName === 'BODY') { + document.getElementById("search").focus(); + return; + } const table = focusedElement.closest('table'); rowIndex = focusedElement.closest('tr').rowIndex; if (event.key === 'ArrowUp') {