runeforge 0.0.43 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,7 @@
48
48
  }
49
49
 
50
50
  const pages = $derived(buildPages(page, totalPages));
51
+ const inputWidth = $derived(`${String(totalPages).length + 2}ch`);
51
52
 
52
53
  function handlePageInput(e: KeyboardEvent) {
53
54
  if (e.key !== 'Enter') return;
@@ -79,8 +80,8 @@
79
80
  {:else if p === page}
80
81
  <input
81
82
  type="number"
82
- class="join-item btn btn-sm w-12 text-center appearance-none"
83
- style="background-color: var(--color-base-100);"
83
+ class="join-item btn btn-sm no-spinner text-center"
84
+ style="background-color: var(--color-base-100); width: {inputWidth};"
84
85
  min="1"
85
86
  max={totalPages}
86
87
  value={page}
@@ -96,3 +97,17 @@
96
97
  </div>
97
98
  </div>
98
99
  {/if}
100
+
101
+ <style>
102
+ .no-spinner {
103
+ appearance: none;
104
+ -moz-appearance: textfield;
105
+ }
106
+
107
+ .no-spinner::-webkit-outer-spin-button,
108
+ .no-spinner::-webkit-inner-spin-button {
109
+ -webkit-appearance: none;
110
+ margin: 0;
111
+ }
112
+ </style>
113
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runeforge",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "SvelteKit toolkit for building metadata-driven CRUD interfaces with tables, forms, and actions",
5
5
  "license": "MIT",
6
6
  "author": "Ezequiel Puerta",