Add 'View Public Page' button to sharing modal

- Add prominent button to view the public shared trip page
- Opens in new tab with external link icon
- Positioned between sharing link and sharing options
- Makes it clear where the sharing link leads
This commit is contained in:
Claude 2025-11-07 12:37:01 +00:00
parent d3c893cddd
commit c8733c2d7f
No known key found for this signature in database

View file

@ -62,6 +62,16 @@
</div>
</div>
<!-- View Public Page Button -->
<div class="flex justify-center">
<%= link_to shared_trip_path(trip.sharing_uuid), target: '_blank', class: 'btn btn-outline btn-primary gap-2' do %>
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14" />
</svg>
View Public Page
<% end %>
</div>
<!-- Current Sharing Options Display -->
<div class="card bg-base-200">
<div class="card-body p-4">