Skip to content

🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!

Fix claim document Attach button stretching full width

sassanix5aaac0e9e873
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b15bb62..42e7be5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -27,6 +27,8 @@
- _Files: `locales/*/translation.json`_
- **First OIDC user now becomes owner (PR #254):** signing in via OIDC as the first user previously granted admin but not owner, startup recovery promoted an ownerless database's first user to owner without admin, and admin-group sync could demote the owner on their next login. The first OIDC user now gets both owner and admin, recovery grants both roles, and the current owner keeps admin access regardless of admin-group membership.
- _Files: `backend/oidc_handler.py`, `backend/__init__.py`_
+- **Claim document attach button sizing:** the "Attach document" button in a claim's Documents section stretched across the whole section — the base button style is full-width (it is designed for form submit buttons), while this button sits in a row beside the compact storage select. It now sizes to its content at the same scale as the select, matching the other compact controls in the app, and the row wraps on narrow screens so the button stays inside the section on mobile instead of overflowing it. The stylesheet cache version is bumped so the fix reaches existing installs without a hard refresh.
+ - _Files: `frontend/style.css`, `frontend/*.html` (stylesheet version bump)_
## 1.0.3 - 2026-10-02
diff --git a/frontend/about.html b/frontend/about.html
index 7dc4368..e91f3a8 100644
--- a/frontend/about.html
+++ b/frontend/about.html
@@ -14,7 +14,7 @@
<link rel="manifest" href="manifest.json">
<!-- Stylesheets -->
- <link rel="stylesheet" href="style.css?v=20250119004"> <!-- Main stylesheet -->
+ <link rel="stylesheet" href="style.css?v=20261030001"> <!-- Main stylesheet -->
<link rel="stylesheet" href="style.css?v=20250119001"> <!-- Additional styles -->
<link rel="stylesheet" href="vendor/fontawesome/css/all.min.css?v=20261001001"> <!-- Font Awesome -->
<link rel="stylesheet" href="header-fix.css?v=20250119001"> <!-- Header specific styles -->
diff --git a/frontend/auth-redirect.html b/frontend/auth-redirect.html
index 90ced1a..073fd82 100644
--- a/frontend/auth-redirect.html
+++ b/frontend/auth-redirect.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Authenticating...</title>
- <link rel="stylesheet" href="style.css?v=20250119004">
+ <link rel="stylesheet" href="style.css?v=20261030001">
<script src="theme-loader.js?v=20250119001"></script>
<style>
body {
diff --git a/frontend/index.html b/frontend/index.html
index bf88c49..c1e208c 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -22,7 +22,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2">
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png">
<link rel="manifest" href="manifest.json">
- <link rel="stylesheet" href="style.css?v=20250119004">
+ <link rel="stylesheet" href="style.css?v=20261030001">
<script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early -->
<!-- Font Awesome for icons -->
diff --git a/frontend/login.html b/frontend/login.html
index 350f636..19f1fa7 100644
--- a/frontend/login.html
+++ b/frontend/login.html
@@ -10,7 +10,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2">
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png">
<link rel="manifest" href="manifest.json">
- <link rel="stylesheet" href="style.css?v=20250119004">
+ <link rel="stylesheet" href="style.css?v=20261030001">
<script src="theme-loader.js?v=20250119001"></script>
<script>
// If user is authenticated and has a theme in user_info (from previous sessions), reflect it early
diff --git a/frontend/register.html b/frontend/register.html
index c583585..636a685 100644
--- a/frontend/register.html
+++ b/frontend/register.html
@@ -13,7 +13,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2">
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png">
<link rel="manifest" href="manifest.json">
- <link rel="stylesheet" href="style.css?v=20250119004">
+ <link rel="stylesheet" href="style.css?v=20261030001">
<script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early -->
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="vendor/fontawesome/css/all.min.css?v=20261001001">
diff --git a/frontend/reset-password-request.html b/frontend/reset-password-request.html
index 76b3e9b..6bbde71 100644
--- a/frontend/reset-password-request.html
+++ b/frontend/reset-password-request.html
@@ -10,7 +10,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2">
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png">
<link rel="manifest" href="manifest.json">
- <link rel="stylesheet" href="style.css?v=20250119004">
+ <link rel="stylesheet" href="style.css?v=20261030001">
<script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early -->
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="vendor/fontawesome/css/all.min.css?v=20261001001">
diff --git a/frontend/reset-password.html b/frontend/reset-password.html
index 936c702..d108fc2 100644
--- a/frontend/reset-password.html
+++ b/frontend/reset-password.html
@@ -10,7 +10,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2">
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png">
<link rel="manifest" href="manifest.json">
- <link rel="stylesheet" href="style.css?v=20250119004">
+ <link rel="stylesheet" href="style.css?v=20261030001">
<script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early -->
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="vendor/fontawesome/css/all.min.css?v=20261001001">
diff --git a/frontend/settings-new.html b/frontend/settings-new.html
index 862ca7f..5f4f95c 100644
--- a/frontend/settings-new.html
+++ b/frontend/settings-new.html
@@ -17,7 +17,7 @@
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png">
<link rel="manifest" href="manifest.json">
<!-- Load the main site styles first -->
- <link rel="stylesheet" href="style.css?v=20250119004">
+ <link rel="stylesheet" href="style.css?v=20261030001">
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="vendor/fontawesome/css/all.min.css?v=20261001001">
<!-- Then load settings-specific styles -->
diff --git a/frontend/status.html b/frontend/status.html
index 9bd287c..1f16eb5 100644
--- a/frontend/status.html
+++ b/frontend/status.html
@@ -19,7 +19,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png?v=2">
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon-512x512.png">
<link rel="manifest" href="manifest.json">
- <link rel="stylesheet" href="style.css?v=20250119004">
+ <link rel="stylesheet" href="style.css?v=20261030001">
<script src="theme-loader.js?v=20250119001"></script> <!-- Apply theme early -->
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="vendor/fontawesome/css/all.min.css?v=20261001001">
diff --git a/frontend/style.css b/frontend/style.css
index ae2dac1..18b2009 100644
--- a/frontend/style.css
+++ b/frontend/style.css
@@ -5496,6 +5496,7 @@ html.dark-mode .warracker-footer a:hover {
.claim-documents-add {
display: flex;
align-items: center;
+ flex-wrap: wrap;
gap: 8px;
margin-top: 8px;
}
@@ -5509,6 +5510,15 @@ html.dark-mode .warracker-footer a:hover {
color: var(--text-color);
}
+/* The base .btn is full-width for form submits; the attach button sits in a
+ row next to the storage select, so size it to its content like the select. */
+.claim-doc-attach {
+ width: auto;
+ flex: 0 0 auto;
+ padding: 4px 14px;
+ font-size: 0.85rem;
+}
+
/* Status badges */
.claim-status-badge {
padding: 3px 8px;