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': '' };