summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGab Virebent <gabriel1@virebent.art>2026-07-06 17:00:06 +0200
committerGab Virebent <gabriel1@virebent.art>2026-07-06 17:00:06 +0200
commitb3d7132714f35174cef0cf5d96bed02a1c4ddff4 (patch)
tree9990e296c483a4417b873b7a6eaf6fe62fe594c9
parent16854e8b24a3b00d9d5dbd285bbe3b93ee47ce1c (diff)
downloadnymdrop-b3d7132714f35174cef0cf5d96bed02a1c4ddff4.tar.gz
nymdrop-b3d7132714f35174cef0cf5d96bed02a1c4ddff4.tar.xz
nymdrop-b3d7132714f35174cef0cf5d96bed02a1c4ddff4.zip
Show current file size limit next to the attachment picker
-rw-r--r--static/index.html1
-rw-r--r--static/style.css7
2 files changed, 8 insertions, 0 deletions
diff --git a/static/index.html b/static/index.html
index abf2e8c..84264b7 100644
--- a/static/index.html
+++ b/static/index.html
@@ -37,6 +37,7 @@
<div class="file-section">
<label>Attachment (optional)</label>
<label class="file-label" for="file">&#128206; Choose file</label>
+ <span class="file-limit">Max 8MB for now</span>
<input type="file" id="file">
<span id="filename"></span>
</div>
diff --git a/static/style.css b/static/style.css
index a2cb765..828c723 100644
--- a/static/style.css
+++ b/static/style.css
@@ -282,6 +282,13 @@ textarea:focus { border-color: var(--accent-green); box-shadow: 0 0 0 2px var(--
.file-label:hover { border-color: var(--accent-blue-text); color: var(--accent-blue-text); }
+.file-limit {
+ font-size: 0.68rem;
+ color: var(--tagline);
+ margin-left: 0.6rem;
+ vertical-align: middle;
+}
+
#file { display: none; }
#filename {