From f0fae620ea82ffe7ecf51111f6527e61d14cec02 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 7 Jul 2025 15:25:47 -0400 Subject: [PATCH] Finalish clean up for IDAA BB Posts --- src/lib/element_tiptap_editor.svelte | 4 +- .../idaa/(idaa)/bb/[post_id]/+page.svelte | 4 +- .../bb/ae_idaa_comp__post_obj_id_edit.svelte | 160 ++++++++++++------ .../bb/ae_idaa_comp__post_obj_li.svelte | 17 +- 4 files changed, 124 insertions(+), 61 deletions(-) diff --git a/src/lib/element_tiptap_editor.svelte b/src/lib/element_tiptap_editor.svelte index 63dd320c..1c3bd175 100644 --- a/src/lib/element_tiptap_editor.svelte +++ b/src/lib/element_tiptap_editor.svelte @@ -41,6 +41,8 @@ export let show_toolbar: boolean = true; export let placeholder: string = 'Type your text here...'; export let changed: boolean = false; +export let classes: string = ''; + if (default_minimal) { show_toolbar = false; } @@ -133,7 +135,7 @@ let mouse_leave_wait: number = 2000; } }, mouse_enter_wait); }} - class="block w-full h-full" + class="block w-full h-full {classes}" > { max-w-full " > - {#if $lq__post_obj?.topic_id} {$lq__post_obj?.topic_name}{/if} + {#if $lq__post_obj?.topic_name} - {$lq__post_obj?.topic_name} + {$lq__post_obj?.topic_name} {/if} {#if $ae_loc.trusted_access && $lq__post_obj?.hide} Hidden diff --git a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte index 9d094df6..bc2a7c12 100644 --- a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte @@ -375,7 +375,7 @@ $effect(() => {
@@ -404,7 +404,12 @@ $effect(() => { $idaa_sess.bb.edit__post_obj = false; } }} - class="novi_btn btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition" + class=" + novi_btn + btn btn-sm + preset-filled-warning-200-800 hover:preset-filled-success-200-800 + transition + " title="Cancel editing of post for {$idaa_slct.post_obj.full_name} (ID: {$idaa_slct.post_obj.post_id}" > Cancel Edit @@ -415,20 +420,22 @@ $effect(() => { -
+
-
-
+ {#if $ae_loc.trusted_access} -
@@ -835,8 +860,8 @@ $effect(() => { -
- Hide +
+ Hide
{ name="hide" value={true} bind:group={$idaa_slct.post_obj.hide} - class="radio" + class="radio form-check-input" >
@@ -855,14 +880,14 @@ $effect(() => { name="hide" value={false} bind:group={$idaa_slct.post_obj.hide} - class="radio" + class="radio form-check-input" >
-
- Priority +
+ Priority
{ name="priority" value={true} bind:group={$idaa_slct.post_obj.priority} - class="radio" + class="radio form-check-input" >
@@ -881,23 +906,23 @@ $effect(() => { name="priority" value={false} bind:group={$idaa_slct.post_obj.priority} - class="radio" + class="radio form-check-input" >
- - + + - + {#if $ae_loc.administrator_access} -
- Enable +
+ Enable
{ name="enable" value={true} bind:group={$idaa_slct.post_obj.enable} - class="radio" + class="radio form-check-input" >
@@ -916,7 +941,7 @@ $effect(() => { name="enable" value={false} bind:group={$idaa_slct.post_obj.enable} - class="radio" + class="radio form-check-input" > @@ -930,13 +955,15 @@ $effect(() => { {#if $ae_loc.trusted_access} {/if} -
+ {/if} -
+
{#if $idaa_slct.post_id}
-
+ diff --git a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_li.svelte b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_li.svelte index 2c959ea2..73556106 100644 --- a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_li.svelte +++ b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_li.svelte @@ -41,7 +41,7 @@ onMount(() => { {@html idaa_post_obj.title} - {#if idaa_post_obj.topic_name} {idaa_post_obj.topic_name}{/if} + {#if idaa_post_obj.topic_name} {idaa_post_obj.topic_name}{/if} @@ -58,7 +58,11 @@ onMount(() => { -