Cleaned up the Badges main search area and the top in general.

This commit is contained in:
Scott Idem
2026-04-08 17:34:05 -04:00
parent dd4c558d1b
commit a84ea4cbcb
2 changed files with 50 additions and 48 deletions

View File

@@ -428,8 +428,10 @@ async function handle_search_refresh(params: any) {
<Comp_badge_search event_id={$events_slct?.event_id ?? ''} log_lvl={1}
></Comp_badge_search>
{#if $ae_loc.trusted_access && $ae_loc.edit_mode && (badges_loc.current.enable_add_badge_btn ?? true)}
<div class="flex justify-end px-4">
{#if $ae_loc.trusted_access && $ae_loc.edit_mode}
<div class="flex flex-row items-center justify-center">
{#if badges_loc.current.enable_add_badge_btn ?? true}
<!-- <div class="flex justify-end px-4"> -->
<button
type="button"
class="btn btn-sm preset-tonal-primary border-primary-500 border"
@@ -440,11 +442,11 @@ async function handle_search_refresh(params: any) {
<UserPlus size="1em" />
Create Badge
</button>
</div>
{/if}
<!-- </div> -->
{/if}
{#if $ae_loc.trusted_access && (badges_loc.current.enable_upload_badge_li_btn ?? true)}
<div class="flex justify-end px-4 mt-2">
{#if badges_loc.current.enable_upload_badge_li_btn ?? true}
<!-- <div class="flex justify-end px-4 mt-2"> -->
<button
type="button"
class="btn btn-sm ml-2"
@@ -454,6 +456,8 @@ async function handle_search_refresh(params: any) {
}}>
<Upload size="1em" /> Upload Badge List
</button>
<!-- </div> -->
{/if}
</div>
{/if}