From 02b002800d76832895a8a6523d9133dcc8b6fa30 Mon Sep 17 00:00:00 2001 From: Najman Husaini Date: Tue, 14 Jan 2025 17:03:31 -0700 Subject: [PATCH] fitted number inputs --- usr-web/src/lib/index.ts | 20 ++-- .../src/routes/(apps)/manifest/+page.svelte | 110 +++++++++--------- .../src/routes/(apps)/scheduler/+page.svelte | 10 +- 3 files changed, 73 insertions(+), 67 deletions(-) diff --git a/usr-web/src/lib/index.ts b/usr-web/src/lib/index.ts index 687f6a1..725f22e 100644 --- a/usr-web/src/lib/index.ts +++ b/usr-web/src/lib/index.ts @@ -113,10 +113,10 @@ export class TeamQuery { public verifyNames(names: Set): string | null { let leftValid; if (typeof this.left === 'string') { - let word = this.left; - if (word.startsWith('!')) { - word = word.substring(1); - } + let word = this.left; + if (word.startsWith('!')) { + word = word.substring(1); + } leftValid = word === '*' || names.has(word) || TEAM_SET.has(word) ? null : word; } else { leftValid = this.left.verifyNames(names); @@ -125,13 +125,11 @@ export class TeamQuery { return leftValid; } if (typeof this.right === 'string') { - let word = this.right; - if (word.startsWith('!')) { - word = word.substring(1); - } - return word === '*' || names.has(word) || TEAM_SET.has(word) - ? null - : word; + let word = this.right; + if (word.startsWith('!')) { + word = word.substring(1); + } + return word === '*' || names.has(word) || TEAM_SET.has(word) ? null : word; } else { return this.right.verifyNames(names); } diff --git a/usr-web/src/routes/(apps)/manifest/+page.svelte b/usr-web/src/routes/(apps)/manifest/+page.svelte index 6150a51..9734fd5 100644 --- a/usr-web/src/routes/(apps)/manifest/+page.svelte +++ b/usr-web/src/routes/(apps)/manifest/+page.svelte @@ -101,7 +101,7 @@ USR Manifest -
+
-
+
{#if tabIndex !== 0}
{#if selectedCellPeople !== null} @@ -431,7 +431,7 @@ {/if}
{/if} - + @@ -481,7 +481,9 @@ selectedCellPeople = people; selectedCell = [x, y]; }} - id={selectedCell !== null && selectedCell[0] === x && selectedCell[1] === y ? 'selected-cell' : ''} + id={selectedCell !== null && selectedCell[0] === x && selectedCell[1] === y + ? 'selected-cell' + : ''} > {/snippet}