Various changes after call with IDAA. Mainly style changes.

This commit is contained in:
Scott Idem
2025-01-08 15:25:30 -05:00
parent b64f4b01ad
commit aa893b5ea6
8 changed files with 34 additions and 21 deletions

View File

@@ -506,6 +506,7 @@ img.qr_code:focus {
margin: 1.25em; margin: 1.25em;
} */ } */
/* BEGIN: Overrides and fixes specific to Novi and IDAA */
.iframe .novi_btn { .iframe .novi_btn {
border-radius: 60px; border-radius: 60px;
border-color: hsla(0, 0%, 50%, .5); border-color: hsla(0, 0%, 50%, .5);
@@ -515,6 +516,14 @@ img.qr_code:focus {
/* margin: 0.5em; */ /* margin: 0.5em; */
} }
.iframe .novi_text_wrap {
/* white-space: normal; */
white-space: pre-wrap;
word-break: break-word;
}
/* END: Overrides and fixes specific to Novi and IDAA */
.iframe button.ae_normal, .iframe button.ae_normal,
.iframe .btn.ae_normal { .iframe .btn.ae_normal {
/* font: normal 1em sans-serif; */ /* font: normal 1em sans-serif; */
@@ -530,6 +539,9 @@ img.qr_code:focus {
} }
.iframe button.ae_smallest, .iframe button.ae_smallest,
.iframe .btn.ae_smallest { .iframe .btn.ae_smallest,
.iframe button.novi_smallest,
.iframe .btn.novi_smallest
{
font-size: 0.65rem; font-size: 0.65rem;
} }

View File

@@ -183,7 +183,7 @@ if (browser) {
<!-- <h1>Archives {$lq__archive_obj?.name} - {$lq__archive_content_obj_li?.length}</h1> --> <!-- <h1>Archives {$lq__archive_obj?.name} - {$lq__archive_content_obj_li?.length}</h1> -->
<a href="/idaa/archives" class="novi_btn btn btn-warning btn-sm <a href="/idaa/archives" class="novi_btn btn btn-secondary btn-sm
variant-ghost-tertiary variant-ghost-tertiary
hover:variant-filled-tertiary hover:variant-filled-tertiary
transition transition

View File

@@ -112,7 +112,7 @@ let ae_promises: key_val = $state({});
$idaa_sess.archives.show__modal_view__archive_content_id = $idaa_slct.archive_content_id; $idaa_sess.archives.show__modal_view__archive_content_id = $idaa_slct.archive_content_id;
$idaa_sess.archives.show__modal_edit__archive_content_id = false; $idaa_sess.archives.show__modal_edit__archive_content_id = false;
}} }}
class="novi_btn btn btn-md btn-primary variant-ghost-primary hover:variant-filled-primary transition" class="novi_btn btn btn-md btn-secondary variant-ghost-primary hover:variant-filled-primary transition"
title={`View: ${idaa_archive_content_obj?.name}`} title={`View: ${idaa_archive_content_obj?.name}`}
> >
<span class="fas fa-play m-1"></span> Play/View <span class="fas fa-play m-1"></span> Play/View

View File

@@ -29,7 +29,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
<header class="ae_header archive__header"> <header class="ae_header archive__header">
<h2 class="archive__name h3"> <h2 class="archive__name h3">
{@html $lq__archive_obj?.name ?? 'Loading...'} {@html $lq__archive_obj?.name ?? 'Loading...'}
{#if $ae_loc.trusted_access} {#if $ae_loc.trusted_access && $ae_loc.edit_mode}
({$lq__archive_content_obj_li?.length ?? '0'}&times;) ({$lq__archive_content_obj_li?.length ?? '0'}&times;)
{/if} {/if}
{#await $idaa_prom.load__archive_content_obj_li} {#await $idaa_prom.load__archive_content_obj_li}

View File

@@ -46,7 +46,7 @@ let { lq__archive_obj_li }: Props = $props();
{/if} {/if}
</header> </header>
{#if idaa_archive_obj.description}<pre class="archive__description p-2 bg-white shadow-md rounded-lg text-wrap text-sm font-normal whitespace-pre-wrap max-w-screen-md">{@html idaa_archive_obj.description}</pre>{/if} {#if idaa_archive_obj.description}<pre class="archive__description p-2 bg-white shadow-md rounded-lg text-sm font-normal text-wrap whitespace-pre-wrap word-break max-w-screen-md novi_text_wrap">{@html idaa_archive_obj.description}</pre>{/if}
<div class="ae_options flex flex-row gap-2 items-center justify-center"> <div class="ae_options flex flex-row gap-2 items-center justify-center">

View File

@@ -415,6 +415,7 @@ function send_staff_notification_email() {
</div> </div>
{#if $ae_loc.trusted_access} {#if $ae_loc.trusted_access}
<Comp_hosted_files_upload <Comp_hosted_files_upload
accept="image/*, .docx, .pdf, .pptx, .key"
class_li="border border-gray-300 rounded-md p-2 bg-gray-100 hover:bg-gray-200" class_li="border border-gray-300 rounded-md p-2 bg-gray-100 hover:bg-gray-200"
link_to_type="post" link_to_type="post"
link_to_id={$idaa_slct.post_obj.post_id} link_to_id={$idaa_slct.post_obj.post_id}

View File

@@ -40,7 +40,7 @@ onMount(() => {
{#if idaa_event_obj} <!-- This check for the idaa_event_obj is here in case the IDB entry is deleted. --> {#if idaa_event_obj} <!-- This check for the idaa_event_obj is here in case the IDB entry is deleted. -->
<div <div
class="container recovery_meeting event_obj border border-1 rounded p-2 mb-2 space-y-2 w-full max-w-screen-lg flex flex-col items-center justify-center" class="container recovery_meeting event_obj border border-1 rounded-lg p-2 mb-2 space-y-2 w-full max-w-screen-lg flex flex-col items-center justify-center bg-white"
class:hidden={(idaa_event_obj?.hide || !idaa_event_obj?.enable) && !$ae_loc.trusted_access} class:hidden={(idaa_event_obj?.hide || !idaa_event_obj?.enable) && !$ae_loc.trusted_access}
class:dim={idaa_event_obj?.hide} class:dim={idaa_event_obj?.hide}
class:bg-warning-100={!idaa_event_obj?.enable} class:bg-warning-100={!idaa_event_obj?.enable}
@@ -53,7 +53,7 @@ onMount(() => {
{idaa_event_obj?.name} {idaa_event_obj?.name}
</h3> </h3>
<span> <span class="flex flex-row flex-wrap gap-1 items-center justify-center">
<span class="badge badge-info variant-glass-tertiary"> <span class="badge badge-info variant-glass-tertiary">
{#if idaa_event_obj?.physical && idaa_event_obj?.virtual} {#if idaa_event_obj?.physical && idaa_event_obj?.virtual}
<span class="fas fa-home m-1"></span> F2F and <span class="fas fa-laptop m-1"></span> Virtual <span class="fas fa-home m-1"></span> F2F and <span class="fas fa-laptop m-1"></span> Virtual
@@ -96,7 +96,7 @@ onMount(() => {
$idaa_sess.recovery_meetings.show__modal_view = true; $idaa_sess.recovery_meetings.show__modal_view = true;
$idaa_sess.recovery_meetings.show__modal_edit = false; $idaa_sess.recovery_meetings.show__modal_edit = false;
}} }}
class="novi_btn btn btn-primary btn-md variant-ghost-primary hover:variant-filled-primary transition" class="novi_btn btn btn-secondary btn-md variant-ghost-primary hover:variant-filled-primary transition"
title={`Open to see details: ${idaa_event_obj?.name}`} title={`Open to see details: ${idaa_event_obj?.name}`}
> >
<span class="fas fa-envelope-open m-1"></span> <span class="fas fa-envelope-open m-1"></span>
@@ -121,7 +121,7 @@ onMount(() => {
$idaa_sess.recovery_meetings.show__modal_view = false; $idaa_sess.recovery_meetings.show__modal_view = false;
$idaa_sess.recovery_meetings.show__modal_edit = true; $idaa_sess.recovery_meetings.show__modal_edit = true;
}} }}
class="novi_btn btn btn-warning btn-sm variant-ghost-warning hover:variant-filled-warning transition" class="novi_btn btn btn-tertiary btn-sm variant-ghost-warning hover:variant-filled-warning transition"
title={`Edit meeting: ${idaa_event_obj?.name}`} title={`Edit meeting: ${idaa_event_obj?.name}`}
> >
<span class="fas fa-edit m-1"></span> <span class="fas fa-edit m-1"></span>
@@ -253,12 +253,12 @@ onMount(() => {
</div> </div>
{/if} {/if}
{#if $ae_loc.trusted_access} {#if $ae_loc.trusted_access}
{#if (idaa_event_obj?.contact_li_json && idaa_event_obj?.contact_li_json.length && !idaa_event_obj?.contact_li_json[0].full_name)} {#if (idaa_event_obj?.contact_li_json && idaa_event_obj?.contact_li_json.length && !idaa_event_obj?.contact_li_json[0].full_name)}
<div class="event__contact ae_warning">Required: No primary contact information was found!</div> <div class="event__contact ae_warning">Required: No primary contact information was found!</div>
{/if} {/if}
{#if !idaa_event_obj?.external_person_id} {#if !idaa_event_obj?.external_person_id}
<div class="event__contact ae_warning bg-warning-100">Warning: Not linked to a Novi record!</div> <div class="event__contact ae_warning bg-warning-100">Warning: Not linked to a Novi record!</div>
{/if} {/if}
{/if} {/if}
</div> </div>

View File

@@ -211,10 +211,10 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
bind:value={$idaa_loc.recovery_meetings.qry__fulltext_str} bind:value={$idaa_loc.recovery_meetings.qry__fulltext_str}
> >
</div> --> </div> -->
<div class="ae_group flex flex-row gap-2 w-full items-center justify-center"> <div class="ae_group flex flex-row flex-wrap gap-2 w-full items-center justify-center">
<button <button
type="button" type="button"
class="novi_btn btn btn-sm variant-ghost-warning hover:variant-filled-warning transition-all" class="novi_btn novi_smallest btn btn-sm variant-ghost-secondary hover:variant-filled-secondary transition-all *:hover:inline"
on:click={() => { on:click={() => {
$idaa_loc.recovery_meetings.qry__fulltext_str = ''; $idaa_loc.recovery_meetings.qry__fulltext_str = '';
// $idaa_trig.event_li_qry = true; // $idaa_trig.event_li_qry = true;
@@ -225,7 +225,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
<!-- <span class="fas fa-backspace"></span> --> <!-- <span class="fas fa-backspace"></span> -->
<!-- <span class="fas fa-broom"></span> --> <!-- <span class="fas fa-broom"></span> -->
<span class="fas fa-remove-format"></span> <span class="fas fa-remove-format"></span>
<!-- Clear text --> <span class="hidden">Clear Text</span>
</button> </button>
<input <input
type="search" type="search"
@@ -287,7 +287,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
</fieldset> </fieldset>
<fieldset class="flex flex-row flex-wrap gap-4 w-full items-center justify-center"> <fieldset class="flex flex-row flex-wrap gap-4 w-full items-center justify-center">
<div class="legend inline-block"> <div class="legend inline-block text-sm">
Type? Type?
</div> </div>
<!-- <div class="ae_row ae_flex_justify_around ae_width_100"> --> <!-- <div class="ae_row ae_flex_justify_around ae_width_100"> -->
@@ -518,7 +518,7 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings
$idaa_sess.recovery_meetings.show__modal_view = false; $idaa_sess.recovery_meetings.show__modal_view = false;
$idaa_sess.recovery_meetings.show__modal_edit = true; $idaa_sess.recovery_meetings.show__modal_edit = true;
}} }}
class="novi_btn btn btn-warning btn-sm variant-ghost-warning hover:variant-filled-warning transition text-xs" class="novi_btn btn btn-tertiary btn-sm variant-ghost-warning hover:variant-filled-warning transition text-xs"
disabled={!$ae_loc.authenticated_access} disabled={!$ae_loc.authenticated_access}
> >
<span class="fas fa-plus m-1"></span> Create New Meeting <span class="fas fa-plus m-1"></span> Create New Meeting