From e6b2ea7aae951da33960dbe3b5612d36a35d516e Mon Sep 17 00:00:00 2001 From: "Satur@it-depot.ru" Date: Wed, 5 Mar 2025 10:23:26 +0300 Subject: [PATCH] icons fix --- app.py | 3 ++- templates/index.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index d4a834a..19dcfdd 100644 --- a/app.py +++ b/app.py @@ -65,8 +65,9 @@ class InstallData(BaseModel): folder_id: int | None = None protocol: str | None = 'rustdesk' # По умолчанию RustDesk -# Монтируем папку templates как статические файлы +# Монтируем папки templates и icons как статические файлы app.mount("/templates", StaticFiles(directory="templates"), name="templates") +app.mount("/icons", StaticFiles(directory="templates/icons"), name="icons") # Главная страница @app.get("/") diff --git a/templates/index.html b/templates/index.html index ab55552..16c3c96 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,7 +21,7 @@ .header div { flex: 1; text-align: center; } .header div:hover { background: #e0e0e0; } .sort-arrow { font-size: 12px; margin-left: 5px; } - .protocol-icon { margin-right: 5px; } + .protocol-icon { margin-right: 5px; height: 16px; width: 16px; vertical-align: middle; } @@ -76,7 +76,7 @@ 'rustdesk': '', 'anydesk': '', 'ammyy': '', - 'teamviewer': '', + 'teamviewer': '', 'vnc': '', 'rdp': '' };