UI:Refactor create find modal UI and update finds list/header layout

- Replace Modal with Sheet for create find modal - Redesign form fields
and file upload UI - Add responsive mobile support for modal - Update
FindsList to support optional title hiding - Move finds section header
to sticky header in main page - Adjust styles for improved layout and
responsiveness
This commit is contained in:
2025-10-21 14:44:25 +02:00
parent e1c5846fa4
commit aa9ed77499
3 changed files with 353 additions and 256 deletions

View File

@@ -26,6 +26,7 @@
title?: string;
showEmpty?: boolean;
emptyMessage?: string;
hideTitle?: boolean;
}
let {
@@ -33,7 +34,8 @@
onFindExplore,
title = 'Finds',
showEmpty = true,
emptyMessage = 'No finds to display'
emptyMessage = 'No finds to display',
hideTitle = false
}: FindsListProps = $props();
function handleFindExplore(id: string) {
@@ -42,9 +44,11 @@
</script>
<section class="finds-feed">
<div class="feed-header">
<h2 class="feed-title">{title}</h2>
</div>
{#if !hideTitle}
<div class="feed-header">
<h2 class="feed-title">{title}</h2>
</div>
{/if}
{#if finds.length > 0}
<div class="feed-container">
@@ -98,6 +102,7 @@
<style>
.finds-feed {
width: 100%;
padding: 0 24px 24px 24px;
}
.feed-header {