nitro-web 0.0.170 → 0.0.172

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.
@@ -15,7 +15,7 @@ export function LoadingWithDots({ message='Loading', className, classNameDots }:
15
15
  export function LoadingOverlay({ message='Loading', className }: { message?: string, className?: string }) {
16
16
  return (
17
17
  <div
18
- className={twMerge('absolute inset-0 bg-white bg-opacity-75 flex items-center justify-center z-10 text-md [&>span]:bg-white', className)}
18
+ className={twMerge('absolute inset-0 bg-white bg-opacity-75 flex items-center justify-center z-10 text-sm [&>span]:bg-white', className)}
19
19
  >
20
20
  <span className="inline-block flex items-center justify-center gap-3 p-2">
21
21
  <Spinner />{message}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-web",
3
- "version": "0.0.170",
3
+ "version": "0.0.172",
4
4
  "repository": "github:boycce/nitro-web",
5
5
  "homepage": "https://boycce.github.io/nitro-web/",
6
6
  "description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",
package/util.js CHANGED
@@ -946,7 +946,7 @@ export function getResponseErrors (errs) {
946
946
  */
947
947
  export function getSystemError(nitroErrors) {
948
948
  const allErrors = getResponseErrors(nitroErrors || [])
949
- const systemError = allErrors.find(error => error.title === 'error')
949
+ const systemError = allErrors.find(error => error.title === 'error' || !error.title)
950
950
  return systemError?.detail || ''
951
951
  }
952
952