diff --git a/eslint.config.js b/eslint.config.js index 221fab9..7465905 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -32,7 +32,8 @@ export default defineConfig([ "README.md", ".github/", ".cursor/", - "spacetimedb/", + "spacetimedb/node_modules", + "spacetimedb/dist", "src/module_bindings/", "src-tauri/**", ], diff --git a/public/config.js b/public/config.js new file mode 100644 index 0000000..25739ab --- /dev/null +++ b/public/config.js @@ -0,0 +1,8 @@ +window.__ENV__ = { + // This file is generated at runtime by docker-entrypoint.sh + // Default values for local development + VITE_SPACETIMEDB_HOST: "", + VITE_SPACETIMEDB_DB_NAME: "", + VITE_AUTH_ISSUER: "", + VITE_AUTH_CLIENT_ID: "", +}; diff --git a/spacetimedb/src/index.ts b/spacetimedb/src/index.ts index bf5c425..1348654 100644 --- a/spacetimedb/src/index.ts +++ b/spacetimedb/src/index.ts @@ -441,7 +441,7 @@ function validateMessageLength(ctx: any, text: string) { const maxLengthConf = ctx.db.system_configuration.key.find("max_message_length"); const maxLength = maxLengthConf ? parseInt(maxLengthConf.value) : 262144; - + // Approximate byte length check const byteLength = new TextEncoder().encode(text).length; if (byteLength > maxLength) { diff --git a/src/chat/components/settings/AccountSettings.svelte b/src/chat/components/settings/AccountSettings.svelte index ad762b3..b9de6fa 100644 --- a/src/chat/components/settings/AccountSettings.svelte +++ b/src/chat/components/settings/AccountSettings.svelte @@ -261,6 +261,8 @@ background-color: var(--background-primary); border-radius: 4px; padding-right: 8px; + width: 100%; + box-sizing: border-box; } .form-group input[type="text"], .form-group textarea { @@ -272,6 +274,13 @@ outline: none; border-radius: 4px; font-family: inherit; + width: 100%; + box-sizing: border-box; + } + + .input-wrapper input[type="text"] { + flex: 1; + background-color: transparent; } .form-group textarea {