diff --git a/src/routes/events/[event_id]/(badges)/badges/[badge_id]/ae_comp__badge_obj_view.svelte b/src/routes/events/[event_id]/(badges)/badges/[badge_id]/ae_comp__badge_obj_view.svelte index e1649c8a..d990b518 100644 --- a/src/routes/events/[event_id]/(badges)/badges/[badge_id]/ae_comp__badge_obj_view.svelte +++ b/src/routes/events/[event_id]/(badges)/badges/[badge_id]/ae_comp__badge_obj_view.svelte @@ -7,6 +7,14 @@ update_status?: string; update_complete?: boolean; is_review_mode?: boolean; + /** Optional px override for name font size. When provided, replaces auto-sizing. */ + font_size_name?: number; + /** Optional px override for professional title font size. */ + font_size_title?: number; + /** Optional px override for affiliations font size. */ + font_size_affiliations?: number; + /** Optional px override for location font size. */ + font_size_location?: number; log_lvl?: number; } @@ -18,6 +26,10 @@ update_status = $bindable('idle'), update_complete = $bindable(true), is_review_mode = false, + font_size_name = undefined, + font_size_title = undefined, + font_size_affiliations = undefined, + font_size_location = undefined, log_lvl = 0 }: Props = $props(); @@ -803,7 +815,8 @@ onkeypress={() => {
+
+ Font Size: + + +
+ Name + + {font_size_name !== null ? `${font_size_name}px` : 'Auto'} + + {#if font_size_name !== null} + + {/if} +
+ + +
+ Title + + {font_size_title !== null ? `${font_size_title}px` : 'Auto'} + + {#if font_size_title !== null} + + {/if} +
+ + +
+ Affil. + + {font_size_affiliations !== null ? `${font_size_affiliations}px` : 'Auto'} + + {#if font_size_affiliations !== null} + + {/if} +
+ + +
+ Location + + {font_size_location !== null ? `${font_size_location}px` : 'Auto'} + + {#if font_size_location !== null} + + {/if} +
+
+ {:else if is_loading_idb || !event_badge_id}