Skip to content

Commit

Permalink
Latest task event container minor style change + Addition of latest t…
Browse files Browse the repository at this point in the history
…ask event on mobile screen (#2035)

* fix(+page): minor style change

* fix(main): fix overlapping banner and log container
  • Loading branch information
NSUWAL123 authored Dec 30, 2024
1 parent 3ddfe54 commit 681343b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/mapper/src/lib/components/map/main.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,14 @@

<!-- Help text for user on first load -->
{#if projectSetupStep === projectSetupStepEnum['task_selection']}
<div class="absolute top-5 w-fit bg-[#F097334D] z-10 left-[50%] translate-x-[-50%] p-1">
<div class="absolute top-7 w-fit bg-[#F097334D] z-10 left-[50%] translate-x-[-50%] p-1">
<p class="uppercase font-barlow-medium text-base">please select a task / feature for mapping</p>
</div>
{/if}

<!-- Help for drawing a new geometry -->
{#if displayDrawHelpText}
<div class="absolute top-5 w-fit bg-[#F097334D] z-10 left-[50%] translate-x-[-50%] p-1">
<div class="absolute top-7 w-fit bg-[#F097334D] z-10 left-[50%] translate-x-[-50%] p-1">
<p class="uppercase font-barlow-medium text-base">Click on the map to create a new point</p>
</div>
{/if}
Expand Down
9 changes: 6 additions & 3 deletions src/mapper/src/routes/[projectId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,13 @@

<!-- There is a new event to display in the top right corner -->
{#if taskStore.latestEvent}
<hot-card id="notification-banner" class="absolute z-10 top-18 right-0 font-sans hidden sm:flex">
<b>{convertDateToTimeAgo(taskStore.latestEvent.created_at)}</b> | {taskStore.latestEvent.event}
<div
id="notification-banner"
class="absolute z-10 top-15 sm:top-18.8 right-0 font-sans flex bg-white text-black bg-opacity-70 text-sm sm:text-base px-1 rounded-bl-md"
>
<b class="">{convertDateToTimeAgo(taskStore.latestEvent.created_at)}</b>&nbsp;| {taskStore.latestEvent.event}
on task {taskStore.latestEvent.task_id} by {taskStore.latestEvent.username || 'anon'}
</hot-card>
</div>
{/if}

<!-- The main page -->
Expand Down

0 comments on commit 681343b

Please sign in to comment.