small styling fixes
This commit is contained in:
+2
-1
@@ -32,7 +32,8 @@ export default defineConfig([
|
|||||||
"README.md",
|
"README.md",
|
||||||
".github/",
|
".github/",
|
||||||
".cursor/",
|
".cursor/",
|
||||||
"spacetimedb/",
|
"spacetimedb/node_modules",
|
||||||
|
"spacetimedb/dist",
|
||||||
"src/module_bindings/",
|
"src/module_bindings/",
|
||||||
"src-tauri/**",
|
"src-tauri/**",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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: "",
|
||||||
|
};
|
||||||
@@ -441,7 +441,7 @@ function validateMessageLength(ctx: any, text: string) {
|
|||||||
const maxLengthConf = ctx.db.system_configuration.key.find("max_message_length");
|
const maxLengthConf = ctx.db.system_configuration.key.find("max_message_length");
|
||||||
const maxLength = maxLengthConf ? parseInt(maxLengthConf.value) : 262144;
|
const maxLength = maxLengthConf ? parseInt(maxLengthConf.value) : 262144;
|
||||||
|
|
||||||
|
|
||||||
// Approximate byte length check
|
// Approximate byte length check
|
||||||
const byteLength = new TextEncoder().encode(text).length;
|
const byteLength = new TextEncoder().encode(text).length;
|
||||||
if (byteLength > maxLength) {
|
if (byteLength > maxLength) {
|
||||||
|
|||||||
@@ -261,6 +261,8 @@
|
|||||||
background-color: var(--background-primary);
|
background-color: var(--background-primary);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group input[type="text"], .form-group textarea {
|
.form-group input[type="text"], .form-group textarea {
|
||||||
@@ -272,6 +274,13 @@
|
|||||||
outline: none;
|
outline: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-wrapper input[type="text"] {
|
||||||
|
flex: 1;
|
||||||
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group textarea {
|
.form-group textarea {
|
||||||
|
|||||||
Reference in New Issue
Block a user