fix(launcher): clean up poster session file display

Two issues in poster session view:

1. 'No files for this presenter' message always showed because
   file_count on the presenter is 0 — poster files are attached to
   the presentation, not the presenter. Removed the misleading message
   from launcher_presenter_view_posters.svelte with an explanation.

2. launcher_presentation_view.svelte was not passing hide_meta, so
   the OS toggle, date badge, and file size always rendered below the
   poster button. Added hide_meta={true} for poster files to match the
   clean display already used in launcher_presenter_view_posters.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-03-04 18:46:22 -05:00
parent 4aa1c2485d
commit 795c12c1db
2 changed files with 4 additions and 7 deletions

View File

@@ -67,6 +67,7 @@
event_file_id={event_file_obj.event_file_id}
{event_file_obj}
hide_created_on={false}
hide_meta={event_file_obj?.event_session_type_code == 'poster'}
bind:hide_draft={
$events_loc.launcher.hide_content__draft_files
}

View File

@@ -65,13 +65,9 @@
{/if}
</strong>
{#if !lq__event_presenter_obj?.file_count}
<p class="text-sm text-center text-gray-400">
<!-- <span class="fas fa-exclamation"></span> -->
No files to show for this presenter at this time.
<!-- <span class="fas fa-exclamation"></span> -->
</p>
{/if}
<!-- WHY: No "no files" message here. In poster sessions, files are attached
to the presentation (not the presenter), so file_count on the presenter
will always be 0. The file is shown via Launcher_presentation_view above. -->
{#if $lq__event_file_obj_li && $lq__event_file_obj_li.length}
<section class="event_session_file_list">