Badges: PVC wrapper hugs card tightly; hide 'Front of badge' label when single-sided
This commit is contained in:
@@ -25,8 +25,13 @@
|
||||
/* outline: thick solid orange; */
|
||||
}
|
||||
|
||||
/* Body area: 5.5in total − ~1in header − ~0.5in footer = ~4in for content.
|
||||
Same as the current Tailwind default — no body override needed. */
|
||||
|
||||
/* No .badge_back rules — duplex=0 on the template means the back section
|
||||
is not rendered at all (see show_badge_back in ae_comp__badge_obj_view.svelte). */
|
||||
/* Outer wrapper: remove the generic 4×6 fanfold defaults so the blue dashed
|
||||
outline hugs the card tightly. The badge_front CSS above supplies the exact
|
||||
3.5×5.5in size; wrapper just needs to fit it with no extra space. */
|
||||
[data-layout="badge_3.5x5.5_pvc"].event_badge_wrapper {
|
||||
padding: 0;
|
||||
gap: 0;
|
||||
min-height: 0;
|
||||
width: fit-content;
|
||||
max-width: fit-content;
|
||||
}
|
||||
|
||||
@@ -321,7 +321,7 @@
|
||||
transition-all
|
||||
"
|
||||
>
|
||||
Front of badge
|
||||
{#if show_badge_back}Front of badge{:else}Badge preview{/if}
|
||||
</span>
|
||||
|
||||
{#if $lq__event_badge_template_obj.header_path}
|
||||
|
||||
@@ -36,6 +36,10 @@
|
||||
events__session_id = null,
|
||||
events__session_search = false
|
||||
}: Props = $props();
|
||||
|
||||
// Build launcher URL segments separately so the href template stays simple (avoids ternaries in href attr)
|
||||
let launcher_loc_seg = $derived(events__launcher_id ? `/${events__launcher_id}` : '');
|
||||
let launcher_sess_qry = $derived(events__session_id ? `?session_id=${events__session_id}` : '');
|
||||
</script>
|
||||
|
||||
<!-- This is for common navigation links. -->
|
||||
@@ -103,7 +107,7 @@
|
||||
Back to Session
|
||||
</a>
|
||||
<a
|
||||
href="/events/{event_id}/launcher{events__launcher_id ? '/' + events__launcher_id : ''}"
|
||||
href="/events/{event_id}/launcher{launcher_loc_seg}{launcher_sess_qry}"
|
||||
class="btn btn-sm mx-1 ae_btn_info"
|
||||
class:hidden={!event_id}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user