From 20543245f8dc71a7ce1f06c28f6cde10d015774e Mon Sep 17 00:00:00 2001 From: retoor Date: Sat, 3 Jan 2026 13:56:16 +0100 Subject: [PATCH] chore: update css, js files --- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/snek/static/base.css | 1 + src/snek/static/chat-input.js | 4 ---- src/snek/static/file-upload-grid.css | 10 +++++++++- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2441d41..622b02c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,14 @@ + +## Version 1.16.0 - 2026-01-03 + +update css, js files + +**Changes:** 3 files, 15 lines +**Languages:** CSS (11 lines), JavaScript (4 lines) + ## Version 1.15.0 - 2026-01-03 update css files diff --git a/pyproject.toml b/pyproject.toml index fecf7a5..5e0f399 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "Snek" -version = "1.15.0" +version = "1.16.0" readme = "README.md" #license = { file = "LICENSE", content-type="text/markdown" } description = "Snek Chat Application by Molodetz" diff --git a/src/snek/static/base.css b/src/snek/static/base.css index cd91467..0dd26fb 100644 --- a/src/snek/static/base.css +++ b/src/snek/static/base.css @@ -295,6 +295,7 @@ footer { } .chat-input { + position: relative; padding: 15px; display: flex; align-items: center; diff --git a/src/snek/static/chat-input.js b/src/snek/static/chat-input.js index f5306ed..dc80133 100644 --- a/src/snek/static/chat-input.js +++ b/src/snek/static/chat-input.js @@ -398,8 +398,6 @@ textToLeetAdvanced(text) { }); this.subscribe("file-uploading", (e) => { this.fileUploadGrid.style.display = "block"; - this.toolbarMenu.style.display = "none"; - this.textarea.style.display = "none"; }); this.toolbarMenu = document.createElement("toolbar-menu"); @@ -415,8 +413,6 @@ textToLeetAdvanced(text) { }); this.subscribe("file-uploads-done", (data)=>{ - this.textarea.style.display = "block"; - this.toolbarMenu.style.display = "inline-block"; this.fileUploadGrid.style.display = "none"; let msg =data.reduce((message, file) => { return `${message}[${file.filename || file.name || file.remoteFile}](/channel/attachment/${file.remoteFile})`; diff --git a/src/snek/static/file-upload-grid.css b/src/snek/static/file-upload-grid.css index 458e304..244b0ff 100644 --- a/src/snek/static/file-upload-grid.css +++ b/src/snek/static/file-upload-grid.css @@ -1,5 +1,13 @@ .fug-root { - background: none; + position: absolute; + bottom: 100%; + left: 0; + right: 0; + background: #111; + border: 1px solid #333; + border-radius: 8px; + margin-bottom: 8px; + z-index: 100; color: white; font-family: sans-serif; max-width: 100%;