Stabilize journal entry width

This commit is contained in:
Scott Idem
2026-05-04 17:25:08 -04:00
parent 38a752fbae
commit 9ed2d21757
3 changed files with 73 additions and 31 deletions

View File

@@ -14,13 +14,10 @@ import { liveQuery } from 'dexie';
import { ae_util } from '$lib/ae_utils/ae_utils';
// import { core_func } from '$lib/ae_core/ae_core_functions';
import { db_journals } from '$lib/ae_journals/db_journals';
import { ae_loc, ae_sess, ae_api, ae_trig } from '$lib/stores/ae_stores';
import { ae_loc } from '$lib/stores/ae_stores';
import {
journals_loc,
journals_sess,
journals_slct,
journals_prom,
journals_trig
journals_slct
} from '$lib/ae_journals/ae_journals_stores';
import Journal_entry_view from './../../../ae_comp__journal_entry_obj_id_view.svelte';
@@ -28,18 +25,28 @@ import Journal_entry_view from './../../../ae_comp__journal_entry_obj_id_view.sv
import AeCompModalJournalExport from '../../../ae_comp__modal_journal_export.svelte';
interface Props {
data: any;
data: {
account_id: string;
[key: string]: unknown;
};
}
let { data }: Props = $props();
interface JournalPageAccount {
slct: {
journal_id: string | null;
journal_entry_id?: string | null;
};
}
// let ae_promises: key_val = {};
// let ae_tmp: key_val = {};
// let ae_triggers: key_val = {};
// Variables
// *** Quickly pull out data from parent(s)
let ae_acct = $derived(data[data.account_id]);
let ae_acct = $derived(data[data.account_id] as JournalPageAccount);
let show_export_modal = $state(false);
$effect(() => {
@@ -266,12 +273,12 @@ $effect(() => {
class="
ae_journals__journal_entry
mx-auto
flex max-h-max min-h-full max-w-max
min-w-full
flex w-full max-w-6xl min-w-0
grow
flex-col
items-center
items-stretch
gap-1
px-2 md:px-4
space-y-2
">
<!-- {#if $lq__journal_entry_obj} -->