fixes and functions

This commit is contained in:
Mateusz Gruszczyński
2026-08-04 23:35:54 +02:00
parent 4b25085bb5
commit 248f4a3977
7 changed files with 28 additions and 16 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ RUST_LOG=rustpad=info,tower_http=warn
# Maximum upload size # Maximum upload size
UPLOAD_MAX_SIZE_MB=20 UPLOAD_MAX_SIZE_MB=20
GUEST_UPLOAD_ENABLED=fakse GUEST_UPLOAD_ENABLED=false
GUEST_UPLOAD_MAX_SIZE_MB=5 GUEST_UPLOAD_MAX_SIZE_MB=5
# Attachment storage: local or s3 # Attachment storage: local or s3
Generated
+1 -1
View File
@@ -2581,7 +2581,7 @@ dependencies = [
[[package]] [[package]]
name = "rustpad" name = "rustpad"
version = "0.2.35" version = "0.2.36"
dependencies = [ dependencies = [
"argon2", "argon2",
"aws-config", "aws-config",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "rustpad" name = "rustpad"
version = "0.2.35" version = "0.2.36"
edition = "2024" edition = "2024"
rust-version = "1.94" rust-version = "1.94"
description = "Collaborative Markdown notepad built with Axum, WebSockets and SQLite, PostgreSQL and MySQL" description = "Collaborative Markdown notepad built with Axum, WebSockets and SQLite, PostgreSQL and MySQL"
+2 -3
View File
@@ -6883,11 +6883,11 @@ dialog::backdrop {
grid-column: 1 / -1; grid-column: 1 / -1;
grid-row: 2; grid-row: 2;
width: 100%; width: 100%;
min-height: 36px; min-height: 1vh;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 7px; gap: 7px;
padding: 7px 12px; padding: 4px 6px;
border: 1px solid var(--toolbar-action-border); border: 1px solid var(--toolbar-action-border);
border-radius: 8px; border-radius: 8px;
background: var(--toolbar-action-bg); background: var(--toolbar-action-bg);
@@ -6919,4 +6919,3 @@ dialog::backdrop {
grid-row: 1; grid-row: 1;
} }
} }
+2 -2
View File
@@ -117,7 +117,7 @@
</details> </details>
</div> </div>
<button id="mobile-upload-button" class="mobile-upload-button" type="button" <button id="mobile-upload-button" class="mobile-upload-button" type="button"
title="Upload an image or file"><span aria-hidden="true">📎</span> Upload file</button> title="Upload an image or file"><span aria-hidden="true"></span> Upload file</button>
<div class="editor-controls"><label>Font<select id="font-family"> <div class="editor-controls"><label>Font<select id="font-family">
<option value="mono">Mono</option> <option value="mono">Mono</option>
<option value="system">System</option> <option value="system">System</option>
@@ -283,7 +283,7 @@
<div class="files-head"> <div class="files-head">
<div> <div>
<h2>Note files</h2> <h2>Note files</h2>
<p>Copy a direct link or ready Markdown/HTML code.</p> <p>Copy a direct link or ready Markdown/Alias code.</p>
</div><button id="close-files" class="icon-button" type="button">×</button> </div><button id="close-files" class="icon-button" type="button">×</button>
</div> </div>
<div id="files-list" class="files-list"></div> <div id="files-list" class="files-list"></div>
+7 -2
View File
@@ -126,8 +126,13 @@
valid share links. Unauthorized visitors receive a not-found response.</p> valid share links. Unauthorized visitors receive a not-found response.</p>
</header> </header>
<div class="list-controls resources-controls"> <div class="list-controls resources-controls">
<label class="list-search"><span class="sr-only">Search notes and workspaces</span><input id="resources-search" type="search" placeholder="Search notes and workspaces…" autocomplete="off"></label> <label class="list-search"><span class="sr-only">Search notes and workspaces</span><input id="resources-search"
<label class="page-size-label">Per page<select id="resources-per-page"><option value="25">25</option><option value="50">50</option><option value="100">100</option></select></label> type="search" placeholder="Search notes and workspaces…" autocomplete="off"></label>
<label class="page-size-label">Per page<select id="resources-per-page">
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select></label>
</div> </div>
<div id="resources-list" class="resources-list"></div> <div id="resources-list" class="resources-list"></div>
<nav id="resources-pagination" class="pagination" aria-label="Resources pagination"></nav> <nav id="resources-pagination" class="pagination" aria-label="Resources pagination"></nav>
+13 -5
View File
@@ -7,7 +7,7 @@
<meta name="color-scheme" content="dark light"> <meta name="color-scheme" content="dark light">
<title>__WORKSPACE_TITLE__ · RustPad</title> <title>__WORKSPACE_TITLE__ · RustPad</title>
__APP_THEME_BOOTSTRAP__ __APP_THEME_BOOTSTRAP__
__APP_STYLESHEET__ __APP_STYLESHEET__
__APP_IMPORT_MAP__ __APP_IMPORT_MAP__
__APP_ENTRYPOINT__ __APP_ENTRYPOINT__
</head> </head>
@@ -35,13 +35,21 @@
</div><button id="new-note-button" class="primary-button inline-button">New note</button> </div><button id="new-note-button" class="primary-button inline-button">New note</button>
</section> </section>
<form id="workspace-password-form" class="workspace-password-card" hidden> <form id="workspace-password-form" class="workspace-password-card" hidden>
<div class="workspace-password-card__copy"><strong>Protect workspace</strong><small>One password secures the workspace and all its notes.</small></div> <div class="workspace-password-card__copy"><strong>Protect workspace</strong><small>One password secures the
<div class="workspace-password-card__controls"><input id="workspace-set-password" type="password" minlength="8" maxlength="128" autocomplete="new-password" placeholder="Min. 8 chars" required><button class="secondary-button" type="submit">Set</button></div> workspace and all its notes.</small></div>
<div class="workspace-password-card__controls"><input id="workspace-set-password" type="password"
minlength="8" maxlength="128" autocomplete="new-password" placeholder="Min. 8 chars"
required><button class="secondary-button" type="submit">Set</button></div>
<small id="workspace-password-error" class="form-message error" role="alert"></small> <small id="workspace-password-error" class="form-message error" role="alert"></small>
</form> </form>
<div class="notes-toolbar"> <div class="notes-toolbar">
<label class="list-search"><span class="sr-only">Search notes</span><input id="notes-search" type="search" placeholder="Search notes…" autocomplete="off"></label> <label class="list-search"><span class="sr-only">Search notes</span><input id="notes-search" type="search"
<label class="page-size-label">Per page<select id="notes-per-page"><option value="25">25</option><option value="50">50</option><option value="100">100</option></select></label> placeholder="Search notes…" autocomplete="off"></label>
<label class="page-size-label">Per page<select id="notes-per-page">
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select></label>
<span class="notes-toolbar__label">View</span> <span class="notes-toolbar__label">View</span>
<div class="notes-view-switch" role="group" aria-label="Notes view"><button type="button" <div class="notes-view-switch" role="group" aria-label="Notes view"><button type="button"
data-notes-view="grid" class="active" aria-pressed="true">Cards</button><button type="button" data-notes-view="grid" class="active" aria-pressed="true">Cards</button><button type="button"